multi: update linter, fix new issues

This commit is contained in:
Oliver Gugger committed 2023-06-13 11:58:33 +02:00
1 parent e549096b88
commit 56dba2df03
31 files changed
+263 -301

No files matched your search

+2 -6
View File
@@ -101,13 +101,9 @@ func TestMigrateChannelIDIndex(t *testing.T) {
// If the migration fails, the details bucket
// should be untouched.
if test.shouldFail {
if err := migtest.VerifyDB(
return migtest.VerifyDB(
tx, cChanDetailsBkt, test.pre,
); err != nil {
return err
}
return nil
)
}
// Else, we expect an updated summary bucket
+2 -6
View File
@@ -281,13 +281,9 @@ func after(shouldFail bool, preMigDB,
// If the migration fails, the sessions bucket should be
// untouched.
if shouldFail {
if err := migtest.VerifyDB(
return migtest.VerifyDB(
tx, cSessionBkt, preMigDB,
); err != nil {
return err
}
return nil
)
}
return migtest.VerifyDB(tx, cSessionBkt, postMigDB)
+2 -6
View File
@@ -144,14 +144,10 @@ func TestMigrateChannelToSessionIndex(t *testing.T) {
// If the migration fails, the details bucket
// should be untouched.
if test.shouldFail {
if err := migtest.VerifyDB(
return migtest.VerifyDB(
tx, cChanDetailsBkt,
test.preDetails,
); err != nil {
return err
}
return nil
)
}
// Else, we expect an updated details bucket