Skip to content

Commit

Permalink
squash: remove unused optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Apr 3, 2022
1 parent c941891 commit 8d901be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/fs/promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ async function write(handle, bufferOrOptions, offset, length, position) {
} = bufferOrOptions);
}

if (buffer?.byteLength === 0)
if (buffer.byteLength === 0)
return { bytesWritten: 0, buffer };

if (isArrayBufferView(buffer)) {
Expand Down

0 comments on commit 8d901be

Please sign in to comment.