From 9be7521b83e8b165d4813b1772f3406bb30f0811 Mon Sep 17 00:00:00 2001 From: jaedle Date: Sun, 24 Feb 2019 09:28:25 +0100 Subject: [PATCH] refactoring --- task.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/task.go b/task.go index e0406c5a..4d6f9453 100644 --- a/task.go +++ b/task.go @@ -64,7 +64,7 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error { } if e.Details { - displayTaskDetails(e, calls[0].Task) + e.displayTaskDetails(calls[0].Task) return nil } @@ -80,7 +80,7 @@ func (e *Executor) Run(ctx context.Context, calls ...taskfile.Call) error { return nil } -func displayTaskDetails(e *Executor, task string) { +func (e *Executor) displayTaskDetails(task string) { if e.Taskfile.Tasks[task].Details == "" { e.Logger.Errf("task: There is no detailed description for task: %s", task) } else {