From 4b7f058f4117f4cb5d0479f3ed0995ed4325d055 Mon Sep 17 00:00:00 2001 From: jaedle Date: Sun, 24 Feb 2019 09:25:39 +0100 Subject: [PATCH] refacotring --- task.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/task.go b/task.go index 11bac147..9c90cebc 100644 --- a/task.go +++ b/task.go @@ -68,10 +68,9 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error { if e.Taskfile.Tasks[task].Details == "" { e.Logger.Errf("task: There is no detailed description for task: %s", task) - return nil + } else { + e.Logger.Outf(e.Taskfile.Tasks[task].Details) } - - e.Logger.Outf(e.Taskfile.Tasks[task].Details) return nil }