Skip to content

Commit

Permalink
Rubocop: resolve Style/RedundantReturn
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed Jan 18, 2024
1 parent 181b7c5 commit 1103573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unwrappr/lock_file_diff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def extract_gem_and_change_type(line)
# '+ websocket-extensions (>= 0.1.0)'
pattern = /^(?<change_type>[+-]) (?<gem_name>\S+) \(\d/
match = pattern.match(line)
return match[:gem_name], match[:change_type] unless match.nil?
[match[:gem_name], match[:change_type]] unless match.nil?
end
end
end

0 comments on commit 1103573

Please sign in to comment.