reject! will be better here
This commit is contained in:
parent
823ed51161
commit
838f03a574
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Repost
|
|||
end
|
||||
|
||||
def unregister_command(keyword)
|
||||
self.commands.delete_if { |item| item[:keyword] == keyword }
|
||||
self.commands.reject! { |item| item[:keyword] == keyword }
|
||||
end
|
||||
|
||||
# just a stub for now
|
||||
|
|
Loading…
Reference in a new issue