Skip to content

Commit 530947c

Browse files
Add istanbul ignore comment for untestable catch block
1 parent 6f732a7 commit 530947c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/date_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function getDateFnsTz(): DateFnsTz | null {
115115
// eslint-disable-next-line @typescript-eslint/no-require-imports
116116
dateFnsTz = require("date-fns-tz") as DateFnsTz;
117117
} catch {
118-
// date-fns-tz is not installed
118+
/* istanbul ignore next - only executes when date-fns-tz is not installed */
119119
dateFnsTz = null;
120120
}
121121

0 commit comments

Comments
 (0)