1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +02:00

refactoring

This commit is contained in:
jaedle
2019-03-04 12:28:11 +01:00
parent f66edbad50
commit 8eadfc1bf6

View File

@ -81,8 +81,11 @@ func printTaskDependencies(l *logger.Logger, t *taskfile.Task) {
}
func printTaskCommands(l *logger.Logger, t *taskfile.Task) {
hasCommands := len(t.Cmds) > 0
if hasCommands {
noCommands := len(t.Cmds) == 0
if noCommands {
return
}
l.Outf("")
l.Outf("commands:")
for _, c := range t.Cmds {
@ -94,4 +97,3 @@ func printTaskCommands(l *logger.Logger, t *taskfile.Task) {
}
}
}
}