1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

format with gofumpt (#18184)

* gofumpt -w -l .

* gofumpt -w -l -extra .

* Add linter

* manual fix

* change make fmt
This commit is contained in:
6543
2022-01-20 18:46:10 +01:00
committed by GitHub
parent 1d98d205f5
commit 54e9ee37a7
423 changed files with 1585 additions and 1758 deletions

View File

@@ -20,7 +20,7 @@ import (
func TestLinksNoLogin(t *testing.T) {
defer prepareTestEnv(t)()
var links = []string{
links := []string{
"/explore/repos",
"/explore/repos?q=test&tab=",
"/explore/users",
@@ -49,7 +49,7 @@ func TestLinksNoLogin(t *testing.T) {
func TestRedirectsNoLogin(t *testing.T) {
defer prepareTestEnv(t)()
var redirects = map[string]string{
redirects := map[string]string{
"/user2/repo1/commits/master": "/user2/repo1/commits/branch/master",
"/user2/repo1/src/master": "/user2/repo1/src/branch/master",
"/user2/repo1/src/master/file.txt": "/user2/repo1/src/branch/master/file.txt",
@@ -67,7 +67,7 @@ func TestRedirectsNoLogin(t *testing.T) {
func TestNoLoginNotExist(t *testing.T) {
defer prepareTestEnv(t)()
var links = []string{
links := []string{
"/user5/repo4/projects",
"/user5/repo4/projects/3",
}
@@ -79,7 +79,7 @@ func TestNoLoginNotExist(t *testing.T) {
}
func testLinksAsUser(userName string, t *testing.T) {
var links = []string{
links := []string{
"/explore/repos",
"/explore/repos?q=test&tab=",
"/explore/users",
@@ -138,7 +138,7 @@ func testLinksAsUser(userName string, t *testing.T) {
var apiRepos []*api.Repository
DecodeJSON(t, respAPI, &apiRepos)
var repoLinks = []string{
repoLinks := []string{
"",
"/issues",
"/pulls",