mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
use unless instead of if !
This commit is contained in:
parent
676a00163d
commit
86b02e7bb1
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ module ActiveSupport
|
|||
end
|
||||
|
||||
def []=(key, value)
|
||||
@keys << key if !has_key?(key)
|
||||
@keys << key unless has_key?(key)
|
||||
super
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue