Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
glasgio authored Sep 1, 2023
1 parent d11c300 commit 664b318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vapid-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ function validateSubject(subject) {

try {
const subjectParseResult = new URL(subject);

Check failure on line 79 in src/vapid-helper.js

View workflow job for this annotation

GitHub Actions / Tests and linting (ubuntu-latest, 16)

'subjectParseResult' is assigned a value but never used

Check failure on line 79 in src/vapid-helper.js

View workflow job for this annotation

GitHub Actions / Tests and linting (ubuntu-latest, lts/*)

'subjectParseResult' is assigned a value but never used

Check failure on line 79 in src/vapid-helper.js

View workflow job for this annotation

GitHub Actions / Tests and linting (ubuntu-latest, 20)

'subjectParseResult' is assigned a value but never used
}
} catch (err) {
throw new Error('Vapid subject is not a valid URL. ' + subject);
}
Expand All @@ -88,6 +87,7 @@ function validateSubject(subject) {
console.warn('Vapid subject points to a localhost web URI, which is unsupported by '
+ 'Apple\'s push notification server and will result in a BadJwtToken error when '
+ 'sending notifications.');
}
}

function validatePublicKey(publicKey) {
Expand Down

0 comments on commit 664b318

Please sign in to comment.