Skip to content

Commit

Permalink
appease javascript linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dobon committed Dec 6, 2024
1 parent 1711af8 commit c9b1ffe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/datetime.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,15 @@ function toISOTime(
if (desiredPrecision === undefined) throw new InvalidUnitError(precision);

switch (true) {
case (desiredPrecision >= Precision.hour):
case desiredPrecision >= Precision.hour:
c += padStart(o.c.hour);
case (desiredPrecision >= Precision.minute):
const extendedGlyph = (extended) ? ":" : "";
case desiredPrecision >= Precision.minute:
const extendedGlyph = extended ? ":" : "";
c += extendedGlyph + padStart(o.c.minute);
case (desiredPrecision >= Precision.second):
case desiredPrecision >= Precision.second:
if (suppressSeconds && o.c.millisecond === 0 && o.c.second === 0) break;
c += extendedGlyph + padStart(o.c.second);
case (desiredPrecision >= Precision.millisecond):
case desiredPrecision >= Precision.millisecond:
if (suppressMilliseconds && o.c.millisecond === 0) break;
c += "." + padStart(o.c.millisecond, 3);
}
Expand Down

0 comments on commit c9b1ffe

Please sign in to comment.