Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gab
social
gab-social
Commits
44fd00bd
Commit
44fd00bd
authored
Feb 18, 2021
by
rubic0n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an unnecessary `if`
parent
9b17b0a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
app/serializers/rest/status_serializer.rb
app/serializers/rest/status_serializer.rb
+1
-5
No files found.
app/serializers/rest/status_serializer.rb
View file @
44fd00bd
...
...
@@ -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?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment