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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user