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:
parent
9110dc4745
commit
92bd914418
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue