Skip to content

Commit ef5d253

Browse files
mgilhamJoshMcCullough
authored andcommitted
reformat a few more ifs
1 parent ba8e44a commit ef5d253

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ngx_http_auth_jwt_module.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,14 @@ static auth_jwt_ctx_t *get_or_init_jwt_module_ctx(ngx_http_request_t *r, auth_jw
458458
static auth_jwt_ctx_t *get_request_jwt_ctx(ngx_http_request_t *r)
459459
{
460460
auth_jwt_conf_t *jwtcf = ngx_http_get_module_loc_conf(r, ngx_http_auth_jwt_module);
461+
461462
if(!jwtcf->enabled)
462463
{
463464
return NULL;
464465
}
465466

466467
auth_jwt_ctx_t *ctx = get_or_init_jwt_module_ctx(r, jwtcf);
468+
467469
if (ctx == NULL)
468470
{
469471
return NULL;
@@ -475,6 +477,7 @@ static auth_jwt_ctx_t *get_request_jwt_ctx(ngx_http_request_t *r)
475477
}
476478

477479
char *jwtPtr = get_jwt(r, jwtcf->jwt_location);
480+
478481
if (jwtPtr == NULL)
479482
{
480483
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "failed to find a JWT");

0 commit comments

Comments
 (0)