From 17f6e816d8be3431625dad3d519fe6a82d5d8182 Mon Sep 17 00:00:00 2001 From: Valentin Maerten Date: Sun, 5 May 2024 17:10:32 +0200 Subject: [PATCH] fix(remote): do not display prompt if it's empty (#1634) --- taskfile/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskfile/reader.go b/taskfile/reader.go index 1c22dc71..dcfb7fdf 100644 --- a/taskfile/reader.go +++ b/taskfile/reader.go @@ -242,7 +242,7 @@ func (r *Reader) readNode(node Node) (*ast.Taskfile, error) { // If there is a cached hash, but it doesn't match the expected hash, prompt the user to continue prompt = fmt.Sprintf(taskfileChangedPrompt, node.Location()) } - if prompt == "" { + if prompt != "" { if err := r.logger.Prompt(logger.Yellow, prompt, "n", "y", "yes"); err != nil { return nil, &errors.TaskfileNotTrustedError{URI: node.Location()} }