summaryrefslogtreecommitdiff
path: root/app/finders/labels_finder.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-13 17:16:51 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:58:26 -0200
commitda9407927be1dd4a6b0b00be360e61d6bb507da8 (patch)
tree8f4d05af71ec6bedda2b5ada64a2899ff5447aca /app/finders/labels_finder.rb
parent6792644ae77476af88343d4a5b9e370326d331ea (diff)
downloadgitlab-ce-da9407927be1dd4a6b0b00be360e61d6bb507da8.tar.gz
Remove unnecessary `title.present?` on LabelsFinder
Diffstat (limited to 'app/finders/labels_finder.rb')
-rw-r--r--app/finders/labels_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/labels_finder.rb b/app/finders/labels_finder.rb
index 28110be7097..5ee2e1ee6e8 100644
--- a/app/finders/labels_finder.rb
+++ b/app/finders/labels_finder.rb
@@ -33,7 +33,7 @@ class LabelsFinder < UnionFinder
end
def with_title(items)
- items = items.where(title: title) if title.present?
+ items = items.where(title: title) if title
items
end