Skip to content

Commit

Permalink
added a safe navigation operator to contact.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ij committed Jun 30, 2022
1 parent a4cfd3a commit a6f2277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sf/contact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def self.where(args = {})
end

def self.find_by(args = {})
where(args).first
where(args)&.first
end

def self.inc_execs_for(account_id = '')
Expand Down

0 comments on commit a6f2277

Please sign in to comment.