mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-17 05:17:59 +08:00
Replace strings.Builder for backward Go compability
This commit is contained in:
parent
a747852728
commit
5f790c705c
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
@ -37,8 +38,8 @@ func TestPrintAccounts(t *testing.T) {
|
|||
t.Errorf("failed to add test account: %v", err)
|
||||
return
|
||||
}
|
||||
var b strings.Builder
|
||||
err := printAccounts("", &b)
|
||||
b := bytes.NewBufferString("")
|
||||
err := printAccounts("", b)
|
||||
if err != nil {
|
||||
t.Errorf("got unexpected error: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue