mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 23:54:44 +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
|
||||
|
||||
def maybe_update_ident
|
||||
if ident[:ident]
|
||||
return unless ident[:ident]
|
||||
|
||||
if contact.identifier.valid?
|
||||
submitted_ident = ::Contact::Ident.new(code: ident[:ident],
|
||||
type: ident[:ident_type],
|
||||
|
@ -81,7 +82,6 @@ module Actions
|
|||
contact.ident_updated_at ||= Time.zone.now
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def commit
|
||||
return false if @error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue