mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 03:53:50 +08:00
ci: make lint happy
This commit is contained in:
parent
e8bf497022
commit
1f55bde728
@ -75,7 +75,6 @@ func testForeach(t *testing.T, elemSize int) {
|
||||
f := tempfile(t)
|
||||
defer os.Remove(f)
|
||||
bt, err := Create(f)
|
||||
defer bt.Close()
|
||||
assert2.NoError(t, err)
|
||||
for _, v := range expected {
|
||||
hash := sha1.New()
|
||||
@ -87,6 +86,7 @@ func testForeach(t *testing.T, elemSize int) {
|
||||
got = append(got, string(value))
|
||||
})
|
||||
assert2.ElementsMatch(t, expected, got)
|
||||
assert2.NoError(t, bt.Close())
|
||||
}
|
||||
|
||||
func TestDB_Foreach(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user