summaryrefslogtreecommitdiffstats
path: root/modules/references
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/references
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/references')
-rw-r--r--modules/references/references.go1
-rw-r--r--modules/references/references_test.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/modules/references/references.go b/modules/references/references.go
index 74837b8553..630e621043 100644
--- a/modules/references/references.go
+++ b/modules/references/references.go
@@ -371,7 +371,6 @@ func FindRenderizableReferenceAlphanumeric(content string) (bool, *RenderizableR
// FindAllIssueReferencesBytes returns a list of unvalidated references found in a byte slice.
func findAllIssueReferencesBytes(content []byte, links []string) []*rawReference {
-
ret := make([]*rawReference, 0, 10)
pos := 0
diff --git a/modules/references/references_test.go b/modules/references/references_test.go
index 11a31b41b6..adf86a3c6c 100644
--- a/modules/references/references_test.go
+++ b/modules/references/references_test.go
@@ -51,7 +51,6 @@ owner/repo!123456789
}
func TestFindAllIssueReferences(t *testing.T) {
-
fixtures := []testFixture{
{
"Simply closes: #29 yes",