Commit 92bd9144 authored by Abiola Ibrahim's avatar Abiola Ibrahim

Fix vet errors.

parent 9110dc47
......@@ -135,7 +135,7 @@ func TestRewriteParse(t *testing.T) {
to /to
if {path} is a
}`, false, []rewrite.Rule{
&rewrite.ComplexRule{Base: "/", To: "/to", Ifs: []rewrite.If{rewrite.If{"{path}", "is", "a"}}},
&rewrite.ComplexRule{Base: "/", To: "/to", Ifs: []rewrite.If{rewrite.If{A: "{path}", Operator: "is", B: "a"}}},
}},
}
......
......@@ -55,7 +55,7 @@ func TestConditions(t *testing.T) {
for _, op := range invalidOperators {
_, err := NewIf("a", op, "b")
if err == nil {
t.Error("Invalid operator %v used, expected error.", op)
t.Errorf("Invalid operator %v used, expected error.", op)
}
}
......
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