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