Skip to content

Commit

Permalink
Fix Style/SafeNavigation offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Jan 22, 2024
1 parent 11d304f commit f6ea0e0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/hawk/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def response_handler(response)
it = [meth, url].join(' ')

if response.timed_out?
what, secs = if response.connect_time && response.connect_time.zero?
what, secs = if response.connect_time&.zero?
# Connect failed
[:connect, req.options[:connecttimeout]]
else
Expand Down
2 changes: 1 addition & 1 deletion lib/hawk/model/active.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def save!
else
def save!
persist!
@changed_attributes && @changed_attributes.clear
@changed_attributes&.clear
true
end
end
Expand Down

0 comments on commit f6ea0e0

Please sign in to comment.