Skip to content

Commit

Permalink
chore(linter): gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingdon Barrett committed Jan 8, 2020
1 parent 9d4a479 commit 7bae8b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions pkg/gitreceive/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ func build(
}
}

var buildPackDebug string
if buildPackDebugInterface, ok := appConf.Values["DEIS_BUILDPACK_DEBUG"]; ok {
if bpDbgStr, ok := buildPackDebugInterface.(string); ok {
log.Debug("Buildpack Debug is on")
buildPackDebug = bpDbgStr
}
}
var buildPackDebug string
if buildPackDebugInterface, ok := appConf.Values["DEIS_BUILDPACK_DEBUG"]; ok {
if bpDbgStr, ok := buildPackDebugInterface.(string); ok {
log.Debug("Buildpack Debug is on")
buildPackDebug = bpDbgStr
}
}

_, disableCaching := appConf.Values["DEIS_DISABLE_CACHE"]
slugBuilderInfo := NewSlugBuilderInfo(appName, gitSha.Short(), disableCaching)
Expand Down
6 changes: 3 additions & 3 deletions pkg/gitreceive/k8s_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ func slugbuilderPod(
addEnvToPod(pod, "BUILDPACK_URL", buildpackURL)
}

if buildpackDebug != "" {
addEnvToPod(pod, "DEIS_BUILDPACK_DEBUG", buildpackDebug)
}
if buildpackDebug != "" {
addEnvToPod(pod, "DEIS_BUILDPACK_DEBUG", buildpackDebug)
}

return &pod
}
Expand Down

0 comments on commit 7bae8b6

Please sign in to comment.