Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-05-25 06:21:48 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-06-01 03:39:04 +0300
commitc557de8d5e324da35d55fbb763a00574ff8f47e9 (patch)
treed65ef36d3da273efe8c4fb403e72fe67cee5cfbf /internal/testhelpers
parent35c937be058d70d1e4fd4dd49de329dc32936f73 (diff)
Enable the remaining linters
- ineffassign - misspell - structcheck - typecheck - unconvert - unused - varcheck - whitespace
Diffstat (limited to 'internal/testhelpers')
-rw-r--r--internal/testhelpers/testhelpers.go2
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