*: fix go-vet errors
Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
parent
c9551d5820
commit
c889416068
2 changed files with 2 additions and 4 deletions
4
unvis.go
4
unvis.go
|
@ -74,7 +74,7 @@ func newParser(input string, flag VisFlag) *unvisParser {
|
|||
func unvisPlainRune(p *unvisParser) ([]byte, error) {
|
||||
ch, err := p.Peek()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("plain rune: %s", ch)
|
||||
return nil, fmt.Errorf("plain rune: %c", ch)
|
||||
}
|
||||
p.Next()
|
||||
|
||||
|
@ -238,8 +238,6 @@ func unvisEscapeSequence(p *unvisParser) ([]byte, error) {
|
|||
default:
|
||||
return unvisEscapeCStyle(p)
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("escape sequence: unsupported sequence: %q", ch)
|
||||
}
|
||||
|
||||
func unvisRune(p *unvisParser) ([]byte, error) {
|
||||
|
|
|
@ -121,7 +121,7 @@ func TestVisChanged(t *testing.T) {
|
|||
t.Errorf("unexpected error with %q: %s", test, err)
|
||||
}
|
||||
if enc == test {
|
||||
t.Errorf("expected encoding of %q to be changed")
|
||||
t.Errorf("expected encoding of %q to be changed", test)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue