Skip to content

Commit 72e70bc

Browse files
RichardH92fjl
authored andcommitted
console: remove comment about 'invalid' input (#15735)
All inputs are saved into history, including 'invalid' inputs.
1 parent 5866626 commit 72e70bc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎console/prompter.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ func (p *terminalPrompter) SetHistory(history []string) {
155155
p.State.ReadHistory(strings.NewReader(strings.Join(history, "\n")))
156156
}
157157

158-
// AppendHistory appends an entry to the scrollback history. It should be called
159-
// if and only if the prompt to append was a valid command.
158+
// AppendHistory appends an entry to the scrollback history.
160159
func (p *terminalPrompter) AppendHistory(command string) {
161160
p.State.AppendHistory(command)
162161
}

0 commit comments

Comments
 (0)