Skip to content

Commit 0e2d97f

Browse files
author
Matt Gaunt
committed
Fixing lint issue
1 parent 0a59f20 commit 0e2d97f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vapid-helper.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function getVapidHeaders(audience, subject, publicKey, privateKey, expiration) {
124124
privateKey = urlBase64.decode(privateKey);
125125

126126
const DEFAULT_EXPIRATION = Math.floor(Date.now() / 1000) + 43200;
127-
127+
128128
if (expiration) {
129129
// TODO: Check if expiration is valid and use it in place of the hard coded
130130
// expiration of 24hours.
@@ -135,8 +135,6 @@ function getVapidHeaders(audience, subject, publicKey, privateKey, expiration) {
135135
alg: 'ES256'
136136
};
137137

138-
139-
140138
const jwtPayload = {
141139
aud: audience,
142140
exp: DEFAULT_EXPIRATION,

0 commit comments

Comments
 (0)