Add and apply Style/MapToHash rubocop rule

This rule was added in Rubocop 1.24.0. Applying it slightly simplifies
the code.
This commit is contained in:
Javi Martín
2022-08-25 22:24:36 +02:00
parent 5ec7f4a339
commit 4a851c0d82
7 changed files with 16 additions and 13 deletions

View File

@@ -509,6 +509,9 @@ Style/IdenticalConditionalBranches:
Style/IfWithBooleanLiteralBranches:
Enabled: true
Style/MapToHash:
Enabled: true
Style/MethodDefParentheses:
Enabled: true