RuiSiang / PoW-Shield

Found complex boolean return JS-W1041
Anti-pattern
Major
8 months ago8 months old
Boolean return can be simplified
29      return false
30    }
31    const hash = utils.hash(nonce, prefix)
32    if (!utils.checkComplexity(hash, complexity)) {33      return false34    }35    return true
36  }
37}