From 19addcbdf4c05d37000e4e2e46495737ac0c9bee Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Thu, 8 Aug 2019 12:13:05 -0700 Subject: [PATCH] fix lint --- pkg/skaffold/trigger/triggers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/skaffold/trigger/triggers.go b/pkg/skaffold/trigger/triggers.go index ec32291aca4..5ca046f32b1 100644 --- a/pkg/skaffold/trigger/triggers.go +++ b/pkg/skaffold/trigger/triggers.go @@ -48,7 +48,7 @@ func NewTrigger(runctx *runcontext.RunContext) (Trigger, error) { Interval: time.Duration(runctx.Opts.WatchPollInterval) * time.Millisecond, }, nil case "notify": - return newFSNotifyTrigger(runctx) + return newFSNotifyTrigger(runctx), nil case "manual": return &manualTrigger{}, nil default: @@ -56,7 +56,7 @@ func NewTrigger(runctx *runcontext.RunContext) (Trigger, error) { } } -func newFSNotifyTrigger(runctx *runcontext.RunContext) (*fsNotifyTrigger, error) { +func newFSNotifyTrigger(runctx *runcontext.RunContext) *fsNotifyTrigger { workspaces := map[string]struct{}{} for _, a := range runctx.Cfg.Build.Artifacts { workspaces[a.Workspace] = struct{}{} @@ -64,7 +64,7 @@ func newFSNotifyTrigger(runctx *runcontext.RunContext) (*fsNotifyTrigger, error) return &fsNotifyTrigger{ Interval: time.Duration(runctx.Opts.WatchPollInterval) * time.Millisecond, workspaces: workspaces, - }, nil + } } // pollTrigger watches for changes on a given interval of time.