diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-13 20:44:26 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-13 20:44:26 -0700 |
commit | 86b02e7bb188a28e9b3c80b6d91af3219321e6fc (patch) | |
tree | 88bd3905fac5dea99a4f973a486fa98bd3ebbeb5 /activesupport/lib/active_support | |
parent | 676a00163d384111c8c7dc6cb319943249f83253 (diff) | |
download | rails-86b02e7bb188a28e9b3c80b6d91af3219321e6fc.tar.gz rails-86b02e7bb188a28e9b3c80b6d91af3219321e6fc.tar.bz2 rails-86b02e7bb188a28e9b3c80b6d91af3219321e6fc.zip |
use unless instead of if !
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/ordered_hash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/ordered_hash.rb b/activesupport/lib/active_support/ordered_hash.rb index dfc3f01fa2..7f148dc853 100644 --- a/activesupport/lib/active_support/ordered_hash.rb +++ b/activesupport/lib/active_support/ordered_hash.rb @@ -79,7 +79,7 @@ module ActiveSupport end def []=(key, value) - @keys << key if !has_key?(key) + @keys << key unless has_key?(key) super end |