From fe6f0f97f8e6c204732547292f3367c003a23b94 Mon Sep 17 00:00:00 2001 From: bytedream Date: Wed, 28 May 2025 20:32:28 +0200 Subject: [PATCH] lint --- tests/integration/repofiles_change_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/integration/repofiles_change_test.go b/tests/integration/repofiles_change_test.go index 7cc264378a..4678e52a9c 100644 --- a/tests/integration/repofiles_change_test.go +++ b/tests/integration/repofiles_change_test.go @@ -4,7 +4,6 @@ package integration import ( - "encoding/json" "fmt" "net/url" "path" @@ -325,7 +324,7 @@ func getExpectedFileResponseForRepoFilesUpdateRename(commitID, lastCommitSHA str for _, detail := range details { encoding := "base64" content := detail["content"].(string) - selfUrl := setting.AppURL + "api/v1/repos/user2/lfs/contents/" + detail["filename"].(string) + "?ref=master" + selfURL := setting.AppURL + "api/v1/repos/user2/lfs/contents/" + detail["filename"].(string) + "?ref=master" htmlURL := setting.AppURL + "user2/lfs/src/branch/master/" + detail["filename"].(string) gitURL := setting.AppURL + "api/v1/repos/user2/lfs/git/blobs/" + detail["sha"].(string) downloadURL := setting.AppURL + "user2/lfs/raw/branch/master/" + detail["filename"].(string) @@ -341,12 +340,12 @@ func getExpectedFileResponseForRepoFilesUpdateRename(commitID, lastCommitSHA str Size: int64(detail["size"].(int)), Encoding: &encoding, Content: &content, - URL: &selfUrl, + URL: &selfURL, HTMLURL: &htmlURL, GitURL: &gitURL, DownloadURL: &downloadURL, Links: &api.FileLinksResponse{ - Self: &selfUrl, + Self: &selfURL, GitURL: &gitURL, HTMLURL: &htmlURL, }, @@ -533,8 +532,6 @@ func TestChangeRepoFilesForUpdateWithFileRename(t *testing.T) { // test filesResponse, err := files_service.ChangeRepoFiles(git.DefaultContext, repo, doer, opts) - a, _ := json.MarshalIndent(filesResponse, "", " ") - fmt.Println(string(a)) // asserts assert.NoError(t, err)