Skip to content

Commit

Permalink
Fix linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Aug 4, 2023
1 parent e048cc7 commit d491d91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,15 @@ export function _checkPresentation(presentation) {
* VerifiableCredential.
* @param {string|Date} [options.now] - A string representing date time in
* ISO 8601 format or an instance of Date. Defaults to current date time.
* @param {string} [options.mode] - The mode of operation for this
* validation function, either `issue` or `verify`.
*
* @throws {Error}
* @private
*/
export function _checkCredential({credential, now = new Date(), mode = 'verify'}) {
export function _checkCredential({
credential, now = new Date(), mode = 'verify'
} = {}) {
if(typeof now === 'string') {
now = new Date(now);
}
Expand Down

0 comments on commit d491d91

Please sign in to comment.