Skip to content

Commit 17f6e81

Browse files
authored
fix(remote): do not display prompt if it's empty (#1634)
1 parent cd259a7 commit 17f6e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

taskfile/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (r *Reader) readNode(node Node) (*ast.Taskfile, error) {
242242
// If there is a cached hash, but it doesn't match the expected hash, prompt the user to continue
243243
prompt = fmt.Sprintf(taskfileChangedPrompt, node.Location())
244244
}
245-
if prompt == "" {
245+
if prompt != "" {
246246
if err := r.logger.Prompt(logger.Yellow, prompt, "n", "y", "yes"); err != nil {
247247
return nil, &errors.TaskfileNotTrustedError{URI: node.Location()}
248248
}

0 commit comments

Comments
 (0)