From 44fd00bdc04c3945368ecf10f6fb421fcbe58885 Mon Sep 17 00:00:00 2001 From: rubic0n Date: Thu, 18 Feb 2021 00:54:51 -0600 Subject: [PATCH] Remove an unnecessary `if` --- app/serializers/rest/status_serializer.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb index d01d0cfe..b6ecd1f5 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -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?