From 2c6d7e629d850ecc33f718211e6e5b0593115ee2 Mon Sep 17 00:00:00 2001 From: iurii Date: Wed, 22 Jan 2025 19:15:30 +0200 Subject: [PATCH] fix linter warnings --- migrations/migration_5_share_gob_to_ssz.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/migration_5_share_gob_to_ssz.go b/migrations/migration_5_share_gob_to_ssz.go index 1221bfd58f..294b13c623 100644 --- a/migrations/migration_5_share_gob_to_ssz.go +++ b/migrations/migration_5_share_gob_to_ssz.go @@ -25,7 +25,7 @@ var migration_5_change_share_format_from_gob_to_ssz = Migration{ return // cannot complete migration successfully } // complete migration, this makes sure migration applies only once - if err := completed(opt.Db); err != nil { + if err = completed(opt.Db); err != nil { err = fmt.Errorf("complete transaction: %w", err) return } @@ -115,7 +115,7 @@ var migration_5_change_share_format_from_gob_to_ssz = Migration{ return fmt.Errorf("total SSZ shares count %d doesn't match GOB shares count %d", sharesSSZTotal, sharesGOBTotal) } - if err := opt.Db.DropPrefix(append(storagePrefix, sharesPrefixGOB...)); err != nil { + if err = opt.Db.DropPrefix(append(storagePrefix, sharesPrefixGOB...)); err != nil { err = fmt.Errorf("DropPrefix (GOB shares): %w", err) return }