Hound fixes

This commit is contained in:
Jure Grabnar 2019-06-10 13:39:53 +02:00 committed by Urban Rotnik
parent 640f6c1211
commit 362b0cd45d
3 changed files with 6 additions and 8 deletions

View file

@ -24,10 +24,8 @@ module ProtocolImporters
pio = ProtocolImporters::ProtocolIntermediateObject.new(normalized_json: normalized_hash,
user: @user,
team: @team)
@pio_protocol = pio.build
unless @pio_protocol.valid?
@errors[:protocol] = pio.protocol.errors
end
@errors[:protocol] = pio.protocol.errors unless @pio_protocol.valid?
rescue StandardError => e
@errors[:build_protocol] = e.message
ensure

View file

@ -2,11 +2,11 @@
module ProtocolImporters
class ProtocolNormalizer
def normalize_all_protocols(client_data)
def normalize_all_protocols(_client_data)
raise NotImplementedError
end
def normalize_protocol(client_data)
def normalize_protocol(_client_data)
raise NotImplementedError
end
end