Skip to content

Commit f164458

Browse files
committed
Drop the from validBefore and validAfter error messages.
1 parent f466987 commit f164458

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ export function _checkCredential({
633633
validUntil = new Date(credential.validUntil);
634634
if(now > validUntil) {
635635
throw new Error(
636-
`The current date time (${now.toISOString()}) is after the ` +
636+
`The current date time (${now.toISOString()}) is after ` +
637637
`"validUntil" (${validUntil.toISOString()}).`);
638638
}
639639
}
@@ -643,7 +643,7 @@ export function _checkCredential({
643643
validFrom = new Date(credential.validFrom);
644644
if(now < validFrom) {
645645
throw new Error(
646-
`The current date time (${now.toISOString()}) is before the ` +
646+
`The current date time (${now.toISOString()}) is before ` +
647647
`"validFrom" (${validFrom.toISOString()}).`);
648648
}
649649
}

0 commit comments

Comments
 (0)