fix: correct lint errors

This commit is contained in:
Jose Diaz-Gonzalez
2017-07-22 15:26:23 -06:00
committed by Michael Hobbs
parent 92d6e76ea4
commit 3b9f4ba63f
2 changed files with 15 additions and 14 deletions

View File

@@ -7,6 +7,7 @@ import (
common "github.com/dokku/dokku/plugins/common"
)
// GetWithDefault returns the value set for a given key, returning defaultValue if none found
func GetWithDefault(appName string, key string, defaultValue string) string {
envFile := strings.Join([]string{common.MustGetEnv("DOKKU_ROOT"), appName, "ENV"}, "/")
lines, err := common.FileToSlice(envFile)