DEV: Apply Rubocop redundant return style

This commit is contained in:
Penar Musaraj
2019-11-14 15:10:51 -05:00
parent be15abcf7f
commit 067696df8f
30 changed files with 45 additions and 45 deletions

View File

@ -120,7 +120,7 @@ class Guardian
def can_see?(obj)
if obj
see_method = method_name_for :see, obj
return (see_method ? public_send(see_method, obj) : true)
(see_method ? public_send(see_method, obj) : true)
end
end
@ -539,7 +539,7 @@ class Guardian
def can_do?(action, obj)
if obj && authenticated?
action_method = method_name_for action, obj
return (action_method ? public_send(action_method, obj) : true)
(action_method ? public_send(action_method, obj) : true)
else
false
end