Skip to content

Commit

Permalink
coding style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev committed Apr 5, 2024
1 parent 301181d commit ae06651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domain/consensus/utils/pow/pow.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ func NewState(header externalapi.MutableBlockHeader, generatedag bool) *State {
}
}

// Return the current hashing algo used
// GetHashingAlgoVersion returns the current hashing algo used
func GetHashingAlgoVersion() string {
return hashingAlgoVersion
}

// Return the readiness state of the context
// IsContextReady returns the readiness state of the context
func (state *State) IsContextReady() bool {
if state != nil && &state.context != nil {

Check failure on line 116 in domain/consensus/utils/pow/pow.go

View workflow job for this annotation

GitHub Actions / Tests, ubuntu-latest

the address of a variable cannot be nil (SA4022)

Check failure on line 116 in domain/consensus/utils/pow/pow.go

View workflow job for this annotation

GitHub Actions / Tests, windows-latest

the address of a variable cannot be nil (SA4022)

Check failure on line 116 in domain/consensus/utils/pow/pow.go

View workflow job for this annotation

GitHub Actions / Tests, macos-latest

the address of a variable cannot be nil (SA4022)
return state.context.ready
Expand Down

0 comments on commit ae06651

Please sign in to comment.