diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-05-25 06:21:48 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-06-01 03:39:04 +0300 |
commit | c557de8d5e324da35d55fbb763a00574ff8f47e9 (patch) | |
tree | d65ef36d3da273efe8c4fb403e72fe67cee5cfbf /internal/testhelpers | |
parent | 35c937be058d70d1e4fd4dd49de329dc32936f73 (diff) |
Enable the remaining linters
- ineffassign
- misspell
- structcheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace
Diffstat (limited to 'internal/testhelpers')
-rw-r--r-- | internal/testhelpers/testhelpers.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/testhelpers/testhelpers.go b/internal/testhelpers/testhelpers.go index d703769b..422a3d9a 100644 --- a/internal/testhelpers/testhelpers.go +++ b/internal/testhelpers/testhelpers.go @@ -30,7 +30,6 @@ func AssertHTTP404(t *testing.T, handler http.HandlerFunc, mode, url string, val // AssertRedirectTo asserts that handler redirects to particular URL func AssertRedirectTo(t *testing.T, handler http.HandlerFunc, method string, url string, values url.Values, expectedURL string) { - require.HTTPRedirect(t, handler, method, url, values) recorder := httptest.NewRecorder() @@ -41,7 +40,6 @@ func AssertRedirectTo(t *testing.T, handler http.HandlerFunc, method string, handler(recorder, req) require.Equal(t, expectedURL, recorder.Header().Get("Location")) - } // AssertLogContains checks that wantLogEntry is contained in at least one of the log entries |