From ecda613595e7772d42d754721a15546700164316 Mon Sep 17 00:00:00 2001 From: Lyon Hill Date: Fri, 7 Apr 2017 11:04:52 -0600 Subject: [PATCH] gofmt --- main.go | 1 - processors/env/share/add.go | 2 +- processors/run.go | 4 ++-- util/provider/share/share_darwin.go | 1 - util/provider/share/share_windows.go | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index f6b3111c..28344dd7 100644 --- a/main.go +++ b/main.go @@ -226,7 +226,6 @@ func migrationCheck() { os.Unsetenv("DOCKER_HOST") os.Unsetenv("DOCKER_CERT_PATH") - if err := proc_provider.Init(); err != nil { os.Exit(0) } diff --git a/processors/env/share/add.go b/processors/env/share/add.go index c3f95a36..54a43ccc 100644 --- a/processors/env/share/add.go +++ b/processors/env/share/add.go @@ -10,7 +10,7 @@ import ( // Add adds a share share to the workstation func Add(path string) error { - // since we dont + // since we dont // // short-circuit if the entry already exist // if share.Exists(path) { // return nil diff --git a/processors/run.go b/processors/run.go index 83482418..49d3cdab 100644 --- a/processors/run.go +++ b/processors/run.go @@ -1,8 +1,8 @@ package processors import ( - "time" "runtime" + "time" "github.com/jcelliott/lumber" "github.com/nanobox-io/golang-docker-client" @@ -175,7 +175,7 @@ func watchFiles(envModel *models.Env, appModel *models.App) { } // TEMP: this is added because osxfs on native doesnt propigate file changes -// this will be removed when osxfs gets better or we switch native on osx to +// this will be removed when osxfs gets better or we switch native on osx to // use nfs func specialException() bool { config, _ := models.LoadConfig() diff --git a/util/provider/share/share_darwin.go b/util/provider/share/share_darwin.go index 7f4d7db0..e5f978cf 100644 --- a/util/provider/share/share_darwin.go +++ b/util/provider/share/share_darwin.go @@ -113,7 +113,6 @@ func (sh *ShareRPC) Add(req Request, resp *Response) error { if !(strings.Contains(line, req.Path+" ") || strings.Contains(line, req.Path+"\" ")) { lines[i] = fmt.Sprintf("\"%s\" %s", req.Path, line) } - lines[i] = cleanLine(lines[i], lineCheck) found = true diff --git a/util/provider/share/share_windows.go b/util/provider/share/share_windows.go index e6d991f1..6ac2f6bc 100644 --- a/util/provider/share/share_windows.go +++ b/util/provider/share/share_windows.go @@ -44,7 +44,7 @@ func Exists(path string) bool { // Add exports a cifs share func Add(path string) error { - + // on windows we dont want to try adding more then once if Exists(path) { return nil