Skip to content

Commit

Permalink
fix(lint): un-shadow variables
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Nov 6, 2024
1 parent 9aab531 commit ec9c837
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ func TestLogToFile(t *testing.T) {
}
log.SetFlags(log.Lmsgprefix)
log.Println("some test log")
if err := f.Close(); err != nil {
t.Error(err)
if closeErr := f.Close(); closeErr != nil {
t.Error(closeErr)
}
out, err := os.ReadFile(path)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (p *inputParser) parseSequence(buf []byte) (n int, msg Msg) {
return 1, KeyPressMsg{Code: KeyEscape}
}

switch b := buf[1]; b {
switch bPrime := buf[1]; bPrime {
case 'O': // Esc-prefixed SS3
return p.parseSs3(buf)
case 'P': // Esc-prefixed DCS
Expand Down

0 comments on commit ec9c837

Please # to comment.