Check the precense of scheduled_at in Status::Build

This commit is contained in:
Shinya Maeda 2018-09-26 15:19:56 +09:00 committed by Alessio Caiazza
parent 20de2480d2
commit 4b0aa57349

View file

@ -17,7 +17,7 @@ module Gitlab
end
def self.matches?(build, user)
build.scheduled?
build.scheduled? && build.scheduled_at
end
private