Skip to content

Commit 276be1a

Browse files
committed
cache_ban: Polish
1 parent f25f08a commit 276be1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/varnishd/cache/cache_ban_build.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ BAN_AddTest(struct ban_proto *bp,
316316
"expected conditional (%s) got \"%s\"",
317317
arg_operhelp[BAN_ARGIDX(pv->tag)], a2));
318318

319-
if ((pv->flag & BANS_FLAG_DURATION) == 0)
320-
return (ban_add_spec(bp, pv, op, a3));
321-
else
319+
if (pv->flag & BANS_FLAG_DURATION)
322320
return (ban_add_duration(bp, pv, op, a3));
321+
else
322+
return (ban_add_spec(bp, pv, op, a3));
323323
}
324324

325325
/*--------------------------------------------------------------------

0 commit comments

Comments
 (0)