1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

Unify ifs

This commit is contained in:
Andrey Nering 2017-03-08 18:34:44 -03:00
parent 3078a3ee68
commit c3f3eb5f51

@ -20,10 +20,7 @@ var (
)
func handleDynamicVariableContent(value string) (string, error) {
if value == "" {
return value, nil
}
if value[0] != '$' {
if value == "" || value[0] != '$' {
return value, nil
}
var cmd *exec.Cmd