1
0
mirror of https://github.com/go-task/task.git synced 2025-01-12 04:34:11 +02:00

Unify ifs

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

View File

@ -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