You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this while running this through esbuild:
● [DEBUG] The "??" operator here will always return the left operand [suspicious-nullish-coalescing]
node_modules/it-tar/dist/src/lte-reader.js:21:38:
21 │ if (done === true ?? nextValue == null) {
╵ ~~
The left operand of the "??" operator here will never be null or undefined, so it will always be
returned. This usually indicates a bug in your code:
node_modules/it-tar/dist/src/lte-reader.js:21:24:
21 │ if (done === true ?? nextValue == null) {
╵ ~~~~~~~~~~~~~
Maybe this should read:
if (done === true && nextValue == null) {
?
The text was updated successfully, but these errors were encountered:
https://github.com/alanshaw/it-tar/blob/4dc79e1066bf0620b8ac990480aed951337fc8f4/src/lte-reader.ts#L26C1-L26C52
I noticed this while running this through esbuild:
Maybe this should read:
?
The text was updated successfully, but these errors were encountered: