Commit 2a29afdb authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

polishing

parent a04e3095
......@@ -819,13 +819,14 @@ vcc_expr_add(struct vcc *tl, struct expr **e, enum var_type fmt)
return;
switch(f2) {
case STRING: break;
case STRING_LIST: break;
case STRING:
case STRING_LIST:
vcc_expr_string_add(tl, e);
return;
case INT: break;
case TIME: break;
case DURATION: break;
case BYTES: break;
case HEADER: break;
default:
VSB_printf(tl->sb, "Operator %.*s not possible on type %s.\n",
PF(tl->t), vcc_Type(f2));
......@@ -833,11 +834,6 @@ vcc_expr_add(struct vcc *tl, struct expr **e, enum var_type fmt)
return;
}
if (f2 == STRING || f2 == STRING_LIST) {
vcc_expr_string_add(tl, e);
return;
}
while (tl->t->tok == '+' || tl->t->tok == '-') {
if (f2 == TIME)
f2 = DURATION;
......
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