Corrected codeclimate issues

This commit is contained in:
Sergei Tsõganov 2022-01-04 14:40:22 +02:00 committed by Sergei Tsõganov
parent 7b7a25069c
commit 8c8e9c8619

View file

@ -146,8 +146,8 @@ module Depp
end end
def save def save
return false unless valid? return false unless valid?
hash = { hash = {
id: { value: code }, id: { value: code },
postalInfo: { postalInfo: {
@ -175,8 +175,8 @@ module Depp
handle_errors(data) handle_errors(data)
end end
# rubocop:disable Metrics/MethodLength # rubocop:disable Metrics/MethodLength
def update_attributes(params) def update_attributes(params)
return false unless valid? return false unless valid?
self.ident_country_code = params[:ident_country_code] self.ident_country_code = params[:ident_country_code]