0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Fix vet errors.

This commit is contained in:
Abiola Ibrahim 2015-12-23 13:23:43 +01:00
parent 9110dc4745
commit 92bd914418
2 changed files with 2 additions and 2 deletions

View file

@ -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"}}},
}},
}

View file

@ -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)
}
}