summaryrefslogtreecommitdiff
path: root/app/finders/ci/pipelines_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/ci/pipelines_finder.rb')
-rw-r--r--app/finders/ci/pipelines_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/ci/pipelines_finder.rb b/app/finders/ci/pipelines_finder.rb
index a77faebb160..e509cf940b8 100644
--- a/app/finders/ci/pipelines_finder.rb
+++ b/app/finders/ci/pipelines_finder.rb
@@ -131,7 +131,7 @@ module Ci
def by_yaml_errors(items)
case Gitlab::Utils.to_boolean(params[:yaml_errors])
when true
- items.where("yaml_errors IS NOT NULL")
+ items.where.not(yaml_errors: nil)
when false
items.where("yaml_errors IS NULL")
else