Skip to content

Commit

Permalink
Remove unused const
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Oct 6, 2019
1 parent da15bcd commit afb1aaa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dkron/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
)

const (
windows = "windows"

// maxBufSize limits how much data we collect from a handler.
// This is to prevent Serf's memory from growing to an enormous
// amount due to a faulty handler.
Expand All @@ -32,7 +30,7 @@ func (a *Agent) invokeJob(job *Job, execution *Execution) error {
return errors.New("invoke: No executor defined, nothing to do")
}

// Check if executor is exists
// Check if executor exists
if executor, ok := a.ExecutorPlugins[jex]; ok {
log.WithField("plugin", jex).Debug("invoke: calling executor plugin")
runningExecutions.Store(execution.GetGroup(), execution)
Expand Down

0 comments on commit afb1aaa

Please sign in to comment.