fix: correct lint errors
This commit is contained in:
committed by
Michael Hobbs
parent
92d6e76ea4
commit
3b9f4ba63f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user