Merge pull request #701 from peco/fix-staticcheck-sa4016

Remove no-op bitwise OR with zero in test
This commit is contained in:
lestrrat 2026-02-18 14:42:21 +09:00 committed by GitHub
commit 6fe3e4516d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,7 +177,7 @@ func TestParseSGR_MalformedExtendedColor(t *testing.T) {
t.Run("well-formed truecolor fg still works", func(t *testing.T) {
var fg, bg Attribute
parseSGR("38;2;255;128;0", &fg, &bg)
expected := Attribute((255<<16)|(128<<8)|0) | AttrTrueColor
expected := Attribute((255<<16)|(128<<8)) | AttrTrueColor
require.Equal(t, expected, fg)
require.Equal(t, ColorDefault, bg)
})