mirror of
https://github.com/internetee/registry.git
synced 2025-06-13 16:14:47 +02:00
convert if to return unless
This commit is contained in:
parent
8b7f4b2558
commit
fa016aa761
1 changed files with 24 additions and 24 deletions
|
@ -53,7 +53,8 @@ module Actions
|
||||||
end
|
end
|
||||||
|
|
||||||
def maybe_update_ident
|
def maybe_update_ident
|
||||||
if ident[:ident]
|
return unless ident[:ident]
|
||||||
|
|
||||||
if contact.identifier.valid?
|
if contact.identifier.valid?
|
||||||
submitted_ident = ::Contact::Ident.new(code: ident[:ident],
|
submitted_ident = ::Contact::Ident.new(code: ident[:ident],
|
||||||
type: ident[:ident_type],
|
type: ident[:ident_type],
|
||||||
|
@ -81,7 +82,6 @@ module Actions
|
||||||
contact.ident_updated_at ||= Time.zone.now
|
contact.ident_updated_at ||= Time.zone.now
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def commit
|
def commit
|
||||||
return false if @error
|
return false if @error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue