diff options
author | 6543 | 2022-01-20 18:46:10 +0100 |
---|---|---|
committer | GitHub | 2022-01-20 18:46:10 +0100 |
commit | 54e9ee37a7a301dbe74d46fd3c87712e6120e9bf (patch) | |
tree | 1be12fb072625c1b896b9d72f7912b018aad502b /tools | |
parent | 1d98d205f5825f40110e6628b61a97c91ac7f72d (diff) |
format with gofumpt (#18184)
* gofumpt -w -l .
* gofumpt -w -l -extra .
* Add linter
* manual fix
* change make fmt
Diffstat (limited to 'tools')
-rw-r--r-- | tools/fuzz.go | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tools/fuzz.go b/tools/fuzz.go index d629096ed..64fda17b5 100644 --- a/tools/fuzz.go +++ b/tools/fuzz.go @@ -24,16 +24,14 @@ import ( // (for example, the input is lexically correct and was parsed successfully). // -1 if the input must not be added to corpus even if gives new coverage and 0 otherwise. -var ( - renderContext = markup.RenderContext{ - Ctx: context.Background(), - URLPrefix: "https://example.com/go-gitea/gitea", - Metas: map[string]string{ - "user": "go-gitea", - "repo": "gitea", - }, - } -) +var renderContext = markup.RenderContext{ + Ctx: context.Background(), + URLPrefix: "https://example.com/go-gitea/gitea", + Metas: map[string]string{ + "user": "go-gitea", + "repo": "gitea", + }, +} func FuzzMarkdownRenderRaw(data []byte) int { setting.AppURL = "http://localhost:3000/" |