Skip to content

Commit

Permalink
Switch to do-end style block to make rubocop happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbwright authored and nunosilva800 committed Apr 18, 2019
1 parent bd37bd6 commit a6ddc92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubycritic/cli/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def to_h
file_hash = file_options.to_h
argv_hash = argv_options.to_h

file_hash.merge(argv_hash) { |_, file_option, argv_option|
file_hash.merge(argv_hash) do |_, file_option, argv_option|
argv_option.nil? ? file_option : argv_option
}
end
end
end
end
Expand Down

0 comments on commit a6ddc92

Please sign in to comment.