crypto: remove check for condition that is always true · nodejs/node@1e4a2bc · GitHub
Skip to content

Commit 1e4a2bc

Browse files
Trottjasnell
authored andcommitted
crypto: remove check for condition that is always true
The value of `key` will always be `!= null` because earlier in the function, `ERR_CRYPTO_SIGN_KEY_REQUIRED` is thrown if `key` is falsy. Remove condition that subsequently checks that `key != null`. PR-URL: #38072 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 78b6f38 commit 1e4a2bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/crypto/sig.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)