fix(lint): un-shadow variables

This commit is contained in:
Christian Rocha 2024-11-06 13:10:02 -05:00
parent 9aab531238
commit ec9c837db4
No known key found for this signature in database
GPG key ID: 589F6FDD5B820611
2 changed files with 3 additions and 3 deletions

View file

@ -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 {

View file

@ -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