diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-08-19 08:12:05 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-08-19 08:16:21 +0900 |
commit | b2c1e29c14b91b290b30c928c63253d1555e0fd9 (patch) | |
tree | 17b4573dbc9c4d4591985b45c0af3c9701666be6 /railties | |
parent | 9270c6d7fc09b3a1fbbb410f60b9d3829a406c07 (diff) | |
download | rails-b2c1e29c14b91b290b30c928c63253d1555e0fd9.tar.gz rails-b2c1e29c14b91b290b30c928c63253d1555e0fd9.tar.bz2 rails-b2c1e29c14b91b290b30c928c63253d1555e0fd9.zip |
Enable Style/ParenthesesAroundCondition cop
To prevent style check in review like https://github.com/rails/rails/pull/33608#discussion_r211087605.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/command/spellchecker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/command/spellchecker.rb b/railties/lib/rails/command/spellchecker.rb index 04485097fa..085d5b16df 100644 --- a/railties/lib/rails/command/spellchecker.rb +++ b/railties/lib/rails/command/spellchecker.rb @@ -24,8 +24,8 @@ module Rails n = s.length m = t.length - return m if (0 == n) - return n if (0 == m) + return m if 0 == n + return n if 0 == m d = (0..m).to_a x = nil |