Commit f7bd2265 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vcc: Remove spurious assertion

Refs #3788
parent 03f019ee
......@@ -101,6 +101,12 @@ varnish v1 -errvcl {Expected ')' got '-'} {
}
}
varnish v1 -errvcl {Expression has type BODY, expected BOOL} {
sub vcl_synth {
if (resp.body) { }
}
}
varnish v1 -errvcl {Expression has type directors.shard, expected ACL} {
import directors;
backend b none;
......
......@@ -1419,8 +1419,6 @@ vcc_expr0(struct vcc *tl, struct expr **e, vcc_type_t fmt)
vcc_expr_cor(tl, e, fmt);
ERRCHK(tl);
assert((*e)->fmt != BODY);
if ((*e)->fmt == fmt)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment