From 807738d5970647c564ff71f0dbd19c7ca080e4da Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sun, 15 Sep 2019 22:38:37 -0700 Subject: [PATCH] fixes issue #2832 --- operator/manager/manager.go | 2 +- plugin/validator/noop.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/operator/manager/manager.go b/operator/manager/manager.go index ae59fe253..fca74734d 100644 --- a/operator/manager/manager.go +++ b/operator/manager/manager.go @@ -465,7 +465,7 @@ func (m *Manager) Watch(ctx context.Context, id int64) (bool, error) { // the database to see if the stage is complete. If // complete, return true. stage, err := m.Stages.Find(ctx, id) - if err == nil { + if err != nil { logger := logrus.WithError(err) logger = logger.WithField("step-id", id) logger.Warnln("manager: cannot find stage") diff --git a/plugin/validator/noop.go b/plugin/validator/noop.go index 3fca78329..7260efddf 100644 --- a/plugin/validator/noop.go +++ b/plugin/validator/noop.go @@ -14,7 +14,7 @@ // +build oss -package converter +package validator import ( "context"