Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glasgio authored Sep 1, 2023
1 parent 664b318 commit 786ab38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vapid-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ function validateSubject(subject) {
+ 'mailto: address. ' + subject);
}

let subjectParseResult = null;
try {
const subjectParseResult = new URL(subject);
subjectParseResult = new URL(subject);
} catch (err) {
throw new Error('Vapid subject is not a valid URL. ' + subject);
}
Expand Down

0 comments on commit 786ab38

Please sign in to comment.