Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 12d8857

Browse files
committed
Fix ineffectual error assign
1 parent a078a8f commit 12d8857

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

internals/cli/ui/ask.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ func AskMultiline(io IO, question string) ([]byte, error) {
7272
}
7373

7474
raw, err := ioutil.ReadAll(promptIn)
75-
75+
if err != nil {
76+
return nil, err
77+
}
7678
fmt.Fprintln(promptOut)
77-
7879
return raw, nil
7980
}
8081

0 commit comments

Comments
 (0)