Skip to content

Commit

Permalink
Use nil safe nav and fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
delonnewman committed Oct 9, 2024
1 parent f527c02 commit 937d23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/dragnet/survey_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def share_by?(method)
end

def share_method
(params && params[:method]) || 'email'
params&.fetch(:method, 'email')
end

def stats_report
Expand Down

0 comments on commit 937d23f

Please sign in to comment.