Skip to content

Commit

Permalink
chore: fix lint and allow nonamedreturns
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Nov 26, 2024
1 parent 0f0e989 commit 8be6baf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ linters:
- nilerr
# - nlreturn # Style wise I personally like this one, todo(lazar): unlax at somepoint, good practice
- noctx
- nonamedreturns
# - nonamedreturns
- nosprintfhostport
- paralleltest
- reassign
Expand Down
5 changes: 0 additions & 5 deletions staker/babylontypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ type sendDelegationRequest struct {
requiredInclusionBlockDepth uint32
}

type sendDelegationResponse struct {
txHashConsumerChain string
err error
}

func (app *App) buildOwnedDelegation(
req *sendDelegationRequest,
stakerAddress btcutil.Address,
Expand Down
3 changes: 1 addition & 2 deletions staker/stakerapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,6 @@ func (app *App) waitForStakingTxConfirmation(
"btcTxHash": txHash,
"confLeft": u,
}).Debugf("Staking transaction received confirmation")

}
}
}
Expand Down Expand Up @@ -1584,7 +1583,7 @@ func (app *App) handleStakingCommands() {

app.logger.WithFields(logrus.Fields{
"consumerBtcDelegationTxHash": resp.TxHash,
}).Debugf("Sending BTC delegation was a sucess")
}).Debugf("Sending BTC delegation was a success")
cmd.successChanTxHash <- resp.TxHash
case <-app.quit:
return
Expand Down

0 comments on commit 8be6baf

Please sign in to comment.