Skip to content

Commit

Permalink
Merge pull request #68 from koic/fix_an_error_for_redundant_merge
Browse files Browse the repository at this point in the history
[Fix #67] Fix an error for `Performance/RedundantMerge`
  • Loading branch information
koic committed Jul 12, 2019
2 parents 29316f4 + e286f25 commit 69ba7f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

## master (unreleased)

### Bug fixes

* [#67](https://github.com/rubocop-hq/rubocop-performance/issues/67): Fix an error for `Performance/RedundantMerge` when `MaxKeyValuePairs` option is set to `null`. ([@koic][])

## 1.4.0 (2019-06-20)

### Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/performance/redundant_merge.rb
Expand Up @@ -132,7 +132,7 @@ def indent_width
end

def max_key_value_pairs
Integer(cop_config['MaxKeyValuePairs'])
Integer(cop_config['MaxKeyValuePairs']) || 2
end

# A utility class for checking the use of values within an
Expand Down

0 comments on commit 69ba7f7

Please sign in to comment.