mirror of
https://github.com/restic/restic.git
synced 2025-08-12 00:27:39 +00:00
avoiding unnecessary type conversions
This commit is contained in:
@@ -154,7 +154,7 @@ foo 2018-08-19 22:22:22 xxx other /home/user/other
|
||||
}
|
||||
|
||||
want := strings.TrimLeft(test.output, "\n")
|
||||
if string(buf.Bytes()) != want {
|
||||
if buf.String() != want {
|
||||
t.Errorf("wrong output\n---- want ---\n%s\n---- got ---\n%s\n-------\n", want, buf.Bytes())
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user