Skip to content

Commit

Permalink
Remove useless OR since @hooks is initialized to empty hash
Browse files Browse the repository at this point in the history
  • Loading branch information
avgerin0s committed Apr 30, 2014
1 parent ab593fc commit 87fbf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/hook_register.rb
Expand Up @@ -194,7 +194,7 @@ def hooks(name = nil)
if name
(@hooks && @hooks[name]) || []
else
@hooks || {}
@hooks
end
end
end
Expand Down

0 comments on commit 87fbf94

Please sign in to comment.