Skip to content

Commit

Permalink
coverage: Cannot force json errors
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Collins <[email protected]>
  • Loading branch information
benmcollins committed Feb 13, 2025
1 parent c19aef6 commit 4278a6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libjwt/jwt-encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ int jwt_head_setup(jwt_t *jwt)
jwt_set_SET_STR(&jval, "typ", "JWT");
if (jwt_header_set(jwt, &jval)) {
if (jval.error != JWT_VALUE_ERR_EXIST) {
// LCOV_EXCL_START
jwt_write_error(jwt,
"Error setting \"typ\" in header");
return 1;
// LCOV_EXCL_STOP
}
}
}
Expand Down

0 comments on commit 4278a6e

Please sign in to comment.