Skip to content

Commit da5d338

Browse files
committed
style(NODE-4871): style nit
1 parent f6aef6e commit da5d338

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/parser/deserializer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,8 @@ function deserializeObject(
349349
const long = new Long(lowBits, highBits);
350350
if (useBigInt64) {
351351
value = dataview.getBigInt64(0, true);
352-
}
353-
// Promote the long if possible
354-
else if (promoteLongs && promoteValues === true) {
352+
} else if (promoteLongs && promoteValues === true) {
353+
// Promote the long if possible
355354
value =
356355
long.lessThanOrEqual(JS_INT_MAX_LONG) && long.greaterThanOrEqual(JS_INT_MIN_LONG)
357356
? long.toNumber()

0 commit comments

Comments
 (0)