Skip to content

Commit

Permalink
remove getEnvOrDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaerten committed Sep 20, 2024
1 parent fa77c60 commit a33f797
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions internal/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,3 @@ func isTypeAllowed(v any) bool {
return false
}
}

func GetEnvOrDefault(key, fallback string) string {
if value, ok := os.LookupEnv(key); ok {
return value
}
return fallback
}
2 changes: 1 addition & 1 deletion internal/flags/flags.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package flags

import (
"cmp"
"errors"
"log"
"os"
Expand All @@ -9,7 +10,6 @@ import (

"github.com/spf13/pflag"

"github.com/go-task/task/v3/internal/env"
"github.com/go-task/task/v3/internal/experiments"
"github.com/go-task/task/v3/taskfile/ast"
)
Expand Down

0 comments on commit a33f797

Please sign in to comment.