mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
refactor delete a little
This commit is contained in:
@@ -84,10 +84,7 @@ module ActiveSupport
|
||||
end
|
||||
|
||||
def delete(key)
|
||||
if has_key? key
|
||||
index = @keys.index(key)
|
||||
@keys.delete_at index
|
||||
end
|
||||
@keys.delete key if has_key? key
|
||||
super
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user