summaryrefslogtreecommitdiffstats
path: root/integrations/links_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 /integrations/links_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 'integrations/links_test.go')
-rw-r--r--integrations/links_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/integrations/links_test.go b/integrations/links_test.go
index d1d90cd5e3..f514aa7757 100644
--- a/integrations/links_test.go
+++ b/integrations/links_test.go
@@ -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",