Skip to content

Commit

Permalink
Unlambda functions with correct signature (#203)
Browse files Browse the repository at this point in the history
No need to wrap these calls in a lambda.
  • Loading branch information
muesli authored and technosophos committed Jan 24, 2020
1 parent 0aefeb2 commit 3c4c604
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ var genericMap = map[string]interface{}{
"must_date_modify": mustDateModify,
"mustDateModify": mustDateModify,
"mustToDate": mustToDate,
"now": func() time.Time { return time.Now() },
"now": time.Now,
"toDate": toDate,
"unixEpoch": unixEpoch,

Expand Down Expand Up @@ -237,8 +237,8 @@ var genericMap = map[string]interface{}{
"deepEqual": reflect.DeepEqual,

// OS:
"env": func(s string) string { return os.Getenv(s) },
"expandenv": func(s string) string { return os.ExpandEnv(s) },
"env": os.Getenv,
"expandenv": os.ExpandEnv,

// Network:
"getHostByName": getHostByName,
Expand Down

0 comments on commit 3c4c604

Please sign in to comment.