summaryrefslogtreecommitdiffstats
path: root/modules/util/sanitize_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/util/sanitize_test.go')
-rw-r--r--modules/util/sanitize_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/util/sanitize_test.go b/modules/util/sanitize_test.go
index 578f75f518..c141f5e947 100644
--- a/modules/util/sanitize_test.go
+++ b/modules/util/sanitize_test.go
@@ -16,7 +16,7 @@ func TestNewSanitizedError(t *testing.T) {
err2 := NewSanitizedError(err)
assert.Equal(t, err.Error(), err2.Error())
- var cases = []struct {
+ cases := []struct {
input error
oldnew []string
expected string
@@ -43,7 +43,7 @@ func TestNewSanitizedError(t *testing.T) {
}
func TestNewStringURLSanitizer(t *testing.T) {
- var cases = []struct {
+ cases := []struct {
input string
placeholder bool
expected string
@@ -101,7 +101,7 @@ func TestNewStringURLSanitizer(t *testing.T) {
}
func TestNewStringURLSanitizedError(t *testing.T) {
- var cases = []struct {
+ cases := []struct {
input string
placeholder bool
expected string