Skip to content

Commit

Permalink
Simplify code and address code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkel committed Sep 12, 2023
1 parent b03418e commit 6f604ee
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/js-joda/src/js-joda-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,12 +443,9 @@ export default class JsJodaUtils implements IUtils<Temporal> {
} else if (!qdate) {
// A time merged with a non-date gives the original time.
return time;
} else if (!qtime) {
// A date merged with a non-time gives the original date.
return date;
} else {
// Fallback / error behavior
/* istanbul ignore next */
// A date merged with a non-time gives the original date. We also use
// this as the fallback / error behavior.
return date;
}
}
Expand Down

0 comments on commit 6f604ee

Please sign in to comment.