We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2595ab commit aa2a909Copy full SHA for aa2a909
internal/dockergen/template.go
@@ -20,17 +20,6 @@ import (
20
"text/template"
21
)
22
23
-func exists(path string) (bool, error) {
24
- _, err := os.Stat(path)
25
- if err == nil {
26
- return true, nil
27
- }
28
- if os.IsNotExist(err) {
29
- return false, nil
30
31
- return false, err
32
-}
33
-
34
func getArrayValues(funcName string, entries interface{}) (*reflect.Value, error) {
35
entriesVal := reflect.ValueOf(entries)
36
@@ -435,7 +424,7 @@ func newTemplate(name string) *template.Template {
435
424
"contains": contains,
436
425
"dict": dict,
437
426
"dir": dirList,
438
- "exists": exists,
427
+ "exists": pathExists,
439
428
"first": arrayFirst,
440
429
"groupBy": groupBy,
441
430
"groupByKeys": groupByKeys,
0 commit comments