diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-13 17:16:51 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 14:58:26 -0200 |
commit | da9407927be1dd4a6b0b00be360e61d6bb507da8 (patch) | |
tree | 8f4d05af71ec6bedda2b5ada64a2899ff5447aca /app/finders | |
parent | 6792644ae77476af88343d4a5b9e370326d331ea (diff) | |
download | gitlab-ce-da9407927be1dd4a6b0b00be360e61d6bb507da8.tar.gz |
Remove unnecessary `title.present?` on LabelsFinder
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/labels_finder.rb | 2 |
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 |