multi: fix linter issues

This commit is contained in:
sputn1ck 2022-05-20 08:57:06 +02:00
parent f0bf9302cc
commit a1271fee40
No known key found for this signature in database
GPG key ID: 671103D881A5F0E4
18 changed files with 10 additions and 21 deletions

View file

@ -19,7 +19,7 @@ import (
// "human-readable": Hex("102030"),
// Hex("1111"): Hex("5783492373"),
// },
// }
// } .
func DumpDB(tx *bbolt.Tx) error { // nolint: unused
return tx.ForEach(func(k []byte, bucket *bbolt.Bucket) error {
key := toString(k)
@ -95,9 +95,7 @@ func restoreDB(bucket *bbolt.Bucket, data map[string]interface{}) error {
}
continue
}
switch value := v.(type) {
// Key contains value.
case string:
err := bucket.Put(key, []byte(value))