Skip to content

Commit

Permalink
fix some lint and vet issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMcKenzie committed Apr 18, 2016
1 parent 589a8ff commit 28a1aa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/agent/dispatcher.go
@@ -1,7 +1,6 @@
package agent

import (
"errors"
"fmt"
"log"
"os/exec"
Expand All @@ -23,6 +22,7 @@ type Dispatcher struct {
shutdownCh <-chan struct{}
}

// NewDispatcher return a new Dispatcher.
func NewDispatcher(cfg dropship.Config, t *Runner, wg *sync.WaitGroup, shutdownCh <-chan struct{}) (*Dispatcher, error) {
w := Dispatcher{
config: cfg,
Expand Down Expand Up @@ -57,6 +57,8 @@ func (w *Dispatcher) start() {
}
}

// Work is responsible for actually performing all the check, download, install
// and script execution for a given service
func (w *Dispatcher) Work() {
log.Printf("[INF]: Starting Update check for %s...", w.config.Name)

Expand Down Expand Up @@ -175,8 +177,6 @@ func getInstaller(contentType string) (dropship.Installer, error) {
var installer dropship.FileInstaller
return installer, nil
}

return nil, errors.New("Unable to determine installation method from file type")
}

func runHooks(hooks []dropship.HookDefinition, service dropship.Config) error {
Expand Down

0 comments on commit 28a1aa5

Please sign in to comment.