diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-22 13:07:56 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-22 13:07:56 +0300 |
| commit | 0cb30ff0e48d57dc4416fe85d7906dd72f8a1322 (patch) | |
| tree | 8d1f4dff8101c89934bd08a9eb0b0939d0cbb89b /internal/repl | |
| parent | b35d11fdb6853f6bf254be261cd6ece47efa2e91 (diff) | |
fix(repl): remove unreachable return in ReadlinePrompt.Run
Task fe: The infinite for loop in Run() can only exit via return
(fmt.Errorf on readline error). The trailing 'return nil' was dead
code flagged by go vet. Removed.
Diffstat (limited to 'internal/repl')
| -rw-r--r-- | internal/repl/repl.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/repl/repl.go b/internal/repl/repl.go index 4f291a8..842abbf 100644 --- a/internal/repl/repl.go +++ b/internal/repl/repl.go @@ -153,8 +153,6 @@ func (p *ReadlinePrompt) Run() error { p.executor(input) } - - return nil } // Close closes the prompt instance. |
