Skip to content

Commit

Permalink
Stop using ?? operator (to fix CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
justingrant committed Jun 28, 2020
1 parent 9fe4bc5 commit 92a1fea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion polyfill/lib/localdatetime.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function fromIsoString(isoString, options) {
absolute = possibleAbsolutes[1];
break;
case 'compatible':
absolute = timeZone.getPossibleAbsolutesFor(dt)[0] ?? dt.inTimeZone(timeZone, { disambiguation: 'later' });
absolute = timeZone.getPossibleAbsolutesFor(dt)[0] || dt.inTimeZone(timeZone, { disambiguation: 'later' });
break;
case 'reject':
default:
Expand Down
2 changes: 1 addition & 1 deletion polyfill/lib/poc/LocalDateTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function fromIsoString(isoString: string, options?: LocalDateTimeAssignmentOptio
absolute = possibleAbsolutes[1];
break;
case 'compatible':
absolute = timeZone.getPossibleAbsolutesFor(dt)[0] ?? dt.inTimeZone(timeZone, { disambiguation: 'later' });
absolute = timeZone.getPossibleAbsolutesFor(dt)[0] || dt.inTimeZone(timeZone, { disambiguation: 'later' });
break;
case 'reject':
default:
Expand Down

0 comments on commit 92a1fea

Please sign in to comment.