Skip to content

Commit d237918

Browse files
committed
Missed one optional-chaining question mark
1 parent 7c5121a commit d237918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function peg(strings, ...values) {
3737
};
3838
} catch (e) {
3939
// @ts-ignore
40-
if (typeof e.format === "function") {
40+
if (typeof e?.format === "function") {
4141
// @ts-ignore
4242
e.message = e.format([{ source: "peggy-tag", text }]);
4343
}

0 commit comments

Comments
 (0)