Skip to content

Commit

Permalink
ban: Remove needless else branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dridi committed Mar 18, 2024
1 parent 3aef2ea commit 8a81990
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/varnishd/cache/cache_ban.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,11 +711,9 @@ BAN_CheckObject(struct worker *wrk, struct objcore *oc, struct req *req)
if (skip != NULL)
return (-1);
return (0);
} else {
VSLb(vsl, SLT_ExpBan,
"%ju banned lookup", VXID(ObjGetXID(wrk, oc)));
return (1);
}
VSLb(vsl, SLT_ExpBan, "%ju banned lookup", VXID(ObjGetXID(wrk, oc)));
return (1);
}

/*--------------------------------------------------------------------
Expand Down

0 comments on commit 8a81990

Please sign in to comment.