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 /guides | |
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 'guides')
-rw-r--r-- | guides/rails_guides/levenshtein.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/rails_guides/levenshtein.rb b/guides/rails_guides/levenshtein.rb index c48af797fa..2213ef754d 100644 --- a/guides/rails_guides/levenshtein.rb +++ b/guides/rails_guides/levenshtein.rb @@ -12,8 +12,8 @@ module RailsGuides 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 |