mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Hound fixes
This commit is contained in:
parent
640f6c1211
commit
362b0cd45d
3 changed files with 6 additions and 8 deletions
|
@ -24,10 +24,8 @@ module ProtocolImporters
|
||||||
pio = ProtocolImporters::ProtocolIntermediateObject.new(normalized_json: normalized_hash,
|
pio = ProtocolImporters::ProtocolIntermediateObject.new(normalized_json: normalized_hash,
|
||||||
user: @user,
|
user: @user,
|
||||||
team: @team)
|
team: @team)
|
||||||
@pio_protocol = pio.build
|
|
||||||
unless @pio_protocol.valid?
|
@errors[:protocol] = pio.protocol.errors unless @pio_protocol.valid?
|
||||||
@errors[:protocol] = pio.protocol.errors
|
|
||||||
end
|
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
@errors[:build_protocol] = e.message
|
@errors[:build_protocol] = e.message
|
||||||
ensure
|
ensure
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
module ProtocolImporters
|
module ProtocolImporters
|
||||||
class ProtocolNormalizer
|
class ProtocolNormalizer
|
||||||
def normalize_all_protocols(client_data)
|
def normalize_all_protocols(_client_data)
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
end
|
end
|
||||||
|
|
||||||
def normalize_protocol(client_data)
|
def normalize_protocol(_client_data)
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue