Commit f1e5ca3a authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 94611607
......@@ -43,7 +43,7 @@ class BuildsEmailService < Service
end
def can_test?
project.builds.count > 0
project.builds.any?
end
def disabled_title
......
......@@ -39,7 +39,7 @@ class PipelinesEmailService < Service
end
def can_test?
project.pipelines.count > 0
project.pipelines.any?
end
def disabled_title
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment