mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
multi: fix linter issues
This commit is contained in:
parent
f0bf9302cc
commit
a1271fee40
18 changed files with 10 additions and 21 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -90,7 +90,6 @@ func TestLoopOutStore(t *testing.T) {
|
|||
t.Run("labelled swap", func(t *testing.T) {
|
||||
testLoopOutStore(t, &labelledSwap)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
// testLoopOutStore tests the basic functionality of the current bbolt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue