Skip to content

Commit b9533c1

Browse files
author
Sergio Andres Virviescas Santana
committed
Fix misspell and ineffassign
1 parent 6e480a1 commit b9533c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/hosts/hosts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (hs HostSwitch) CheckHost(ctx *fasthttp.RequestCtx) {
3030
if handler := hs[string(ctx.Host())]; handler != nil {
3131
handler(ctx)
3232
} else {
33-
// Handle host names for wich no handler is registered
33+
// Handle host names for which no handler is registered
3434
ctx.Error("Forbidden", 403) // Or Redirect?
3535
}
3636
}

router_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ func TestRouterLookup(t *testing.T) {
784784
// insert route and try again
785785
r.GET("/user/:name", wantHandle)
786786

787-
handle, tsr = r.Lookup("GET", "/user/gopher", ctx)
787+
handle, _ = r.Lookup("GET", "/user/gopher", ctx)
788788
if handle == nil {
789789
t.Fatal("Got no handle!")
790790
} else {

0 commit comments

Comments
 (0)