Remove an unnecessary `if`
This commit is contained in:
parent
9b17b0a553
commit
44fd00bdc0
|
@ -123,11 +123,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def pinnable_by_group
|
||||
if object.group_id?
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
object.group_id?
|
||||
end
|
||||
|
||||
def source_requested?
|
||||
|
|
Loading…
Reference in New Issue