Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BeniaminDrasovean committed Dec 18, 2024
1 parent ac37763 commit 0e4014e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions trie/disabledGoroutinesManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ func NewDisabledGoroutinesManager() *disabledGoroutinesManager {

// ShouldContinueProcessing returns true if there is no error
func (d *disabledGoroutinesManager) ShouldContinueProcessing() bool {
if d.err != nil {
return false
}

return true
return d.err != nil
}

// CanStartGoRoutine returns false
Expand Down
6 changes: 1 addition & 5 deletions trie/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,7 @@ func concat(s1 []byte, s2 ...byte) []byte {

func hasValidHash(n node) bool {
childHash := n.getHash()
if childHash == nil {
return false
}

return true
return len(childHash) != 0
}

func decodeNode(encNode []byte, marshalizer marshal.Marshalizer, hasher hashing.Hasher) (node, error) {
Expand Down

0 comments on commit 0e4014e

Please sign in to comment.