parent
8c1fb2a983
commit
766b4902d4
|
@ -58,7 +58,6 @@ func interpolationFuncFile() ast.Function {
|
||||||
ArgTypes: []ast.Type{ast.TypeString},
|
ArgTypes: []ast.Type{ast.TypeString},
|
||||||
ReturnType: ast.TypeString,
|
ReturnType: ast.TypeString,
|
||||||
Callback: func(args []interface{}) (interface{}, error) {
|
Callback: func(args []interface{}) (interface{}, error) {
|
||||||
var path string
|
|
||||||
path, err := homedir.Expand(args[0].(string))
|
path, err := homedir.Expand(args[0].(string))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|
Loading…
Reference in New Issue