File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,12 @@ import (
8
8
"time"
9
9
10
10
"github.com/pkg/errors"
11
+ "go.uber.org/zap"
12
+
11
13
"github.com/wavesplatform/gowaves/cmd/wmd/internal/data"
12
14
"github.com/wavesplatform/gowaves/cmd/wmd/internal/state"
13
15
"github.com/wavesplatform/gowaves/pkg/crypto"
14
16
"github.com/wavesplatform/gowaves/pkg/proto"
15
- "go.uber.org/zap"
16
17
)
17
18
18
19
type Importer struct {
@@ -39,9 +40,9 @@ func (im *Importer) Import(n string) error {
39
40
return errors .Wrapf (err , "failed to open blockchain file '%s'" , n )
40
41
}
41
42
defer func () {
42
- err = f .Close ()
43
- if err != nil {
44
- zap .S ().Errorf ("Failed to close blockchain file: %s" , err .Error ())
43
+ closeErr : = f .Close ()
44
+ if closeErr != nil {
45
+ zap .S ().Errorf ("Failed to close blockchain file: %s" , closeErr .Error ())
45
46
}
46
47
}()
47
48
You can’t perform that action at this time.
0 commit comments