Fix a lint warning by simplifying this append operation.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
Matt Moyer 2020-12-02 16:11:22 -06:00
parent c0f13ef4ac
commit ae9bdc1d61
No known key found for this signature in database
GPG Key ID: EAE88AD172C5AE2D
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ func startLocalCallbackServer(t *testing.T) *localCallbackServer {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
callbacks <- r
}))
server.URL = server.URL + "/callback"
server.URL += "/callback"
t.Cleanup(server.Close)
t.Cleanup(func() { close(callbacks) })
return &localCallbackServer{Server: server, t: t, callbacks: callbacks}