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 1bbc4d9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 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
}
1 change: 0 additions & 1 deletion internal/fingerprint/sources_checksum.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func (checker *ChecksumChecker) IsUpToDate(t *ast.Task) (bool, error) {
if len(t.Sources) == 0 {
return false, nil
}

checksumFile := checker.checksumFilePath(t)

data, _ := os.ReadFile(checksumFile)
Expand Down
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
1 change: 1 addition & 0 deletions taskfile/ast/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (t *Task) WildcardMatch(name string) (bool, []string) {
return false, wildcards
}

fmt.Printf("wildcards: %v\n", wildcards)
return true, wildcards
}

Expand Down

0 comments on commit 1bbc4d9

Please sign in to comment.