aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
author65432022-01-20 18:46:10 +0100
committerGitHub2022-01-20 18:46:10 +0100
commit54e9ee37a7a301dbe74d46fd3c87712e6120e9bf (patch)
tree1be12fb072625c1b896b9d72f7912b018aad502b /tools
parent1d98d205f5825f40110e6628b61a97c91ac7f72d (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.go18
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/"