Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
iurii-ssv committed Jan 22, 2025
1 parent eb5b7d7 commit 2c6d7e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/migration_5_share_gob_to_ssz.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var migration_5_change_share_format_from_gob_to_ssz = Migration{
return // cannot complete migration successfully
}

Check warning on line 26 in migrations/migration_5_share_gob_to_ssz.go

View check run for this annotation

Codecov / codecov/patch

migrations/migration_5_share_gob_to_ssz.go#L23-L26

Added lines #L23 - L26 were not covered by tests
// 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
}
Expand Down Expand Up @@ -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)
}

Check warning on line 116 in migrations/migration_5_share_gob_to_ssz.go

View check run for this annotation

Codecov / codecov/patch

migrations/migration_5_share_gob_to_ssz.go#L114-L116

Added lines #L114 - L116 were not covered by tests

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
}

Check warning on line 121 in migrations/migration_5_share_gob_to_ssz.go

View check run for this annotation

Codecov / codecov/patch

migrations/migration_5_share_gob_to_ssz.go#L118-L121

Added lines #L118 - L121 were not covered by tests
Expand Down

0 comments on commit 2c6d7e6

Please sign in to comment.