Skip to content

Commit

Permalink
chore(v1): fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Nov 15, 2024
1 parent 2740a76 commit f1c2707
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/misc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ func migrateAppPurchases(appStoreSecret string) error {
return errors.Wrap(err, "error verifying receipt")
}

if resp.LatestReceiptInfo == nil || len(resp.LatestReceiptInfo) == 0 {
if len(resp.LatestReceiptInfo) == 0 {
logrus.Infof("no receipt info for purchase id %v", receipt.ID)
if receipt.Active && receipt.ValidateRemotely { // sanity, if there is an active subscription without receipt info we cam't delete it.
return fmt.Errorf("no receipt info for active purchase id %v", receipt.ID)
Expand Down
3 changes: 2 additions & 1 deletion exporter/rocketpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"github.com/gobitfly/eth2-beaconchain-explorer/db"
"github.com/gobitfly/eth2-beaconchain-explorer/utils"
"github.com/pkg/errors"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
Expand Down Expand Up @@ -1919,7 +1920,7 @@ func DownloadRewardsFile(fileName string, interval uint64, cid string, isDaemon
}
}

return nil, fmt.Errorf(errBuilder.String())
return nil, errors.New(errBuilder.String())

}

Expand Down

0 comments on commit f1c2707

Please sign in to comment.