summaryrefslogtreecommitdiffstats
path: root/modules/util/sanitize_test.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-01-20 18:46:10 +0100
committerGitHub <noreply@github.com>2022-01-20 18:46:10 +0100
commit54e9ee37a7a301dbe74d46fd3c87712e6120e9bf (patch)
tree1be12fb072625c1b896b9d72f7912b018aad502b /modules/util/sanitize_test.go
parent1d98d205f5825f40110e6628b61a97c91ac7f72d (diff)
downloadgitea-54e9ee37a7a301dbe74d46fd3c87712e6120e9bf.tar.gz
gitea-54e9ee37a7a301dbe74d46fd3c87712e6120e9bf.zip
format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
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