Skip to content

Commit

Permalink
ignored coverage error
Browse files Browse the repository at this point in the history
  • Loading branch information
synapse authored Mar 26, 2024
1 parent 1839d4f commit bdea23a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,13 @@ function fastifyJwt (fastify, options, next) {
} catch (error) {
// Ignoring the else branch because it's not possible to test it,
// it's just a safeguard for future changes in the fast-jwt library
/* istanbul ignore next */
if (error.code === TokenError.codes.malformed) {
throw new AuthorizationTokenInvalidError(error.message)
} else if (error.code === TokenError.codes.invalidType) {
throw new AuthorizationTokenInvalidError(error.message)
} else {
} /* c8 ignore start */ else {
throw error
}
} /* c8 ignore stop */
}
}

Expand Down

0 comments on commit bdea23a

Please sign in to comment.