Skip to content

Commit fe6f0f9

Browse files
committed
lint
1 parent 35d85dc commit fe6f0f9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/integration/repofiles_change_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
package integration
55

66
import (
7-
"encoding/json"
87
"fmt"
98
"net/url"
109
"path"
@@ -325,7 +324,7 @@ func getExpectedFileResponseForRepoFilesUpdateRename(commitID, lastCommitSHA str
325324
for _, detail := range details {
326325
encoding := "base64"
327326
content := detail["content"].(string)
328-
selfUrl := setting.AppURL + "api/v1/repos/user2/lfs/contents/" + detail["filename"].(string) + "?ref=master"
327+
selfURL := setting.AppURL + "api/v1/repos/user2/lfs/contents/" + detail["filename"].(string) + "?ref=master"
329328
htmlURL := setting.AppURL + "user2/lfs/src/branch/master/" + detail["filename"].(string)
330329
gitURL := setting.AppURL + "api/v1/repos/user2/lfs/git/blobs/" + detail["sha"].(string)
331330
downloadURL := setting.AppURL + "user2/lfs/raw/branch/master/" + detail["filename"].(string)
@@ -341,12 +340,12 @@ func getExpectedFileResponseForRepoFilesUpdateRename(commitID, lastCommitSHA str
341340
Size: int64(detail["size"].(int)),
342341
Encoding: &encoding,
343342
Content: &content,
344-
URL: &selfUrl,
343+
URL: &selfURL,
345344
HTMLURL: &htmlURL,
346345
GitURL: &gitURL,
347346
DownloadURL: &downloadURL,
348347
Links: &api.FileLinksResponse{
349-
Self: &selfUrl,
348+
Self: &selfURL,
350349
GitURL: &gitURL,
351350
HTMLURL: &htmlURL,
352351
},
@@ -533,8 +532,6 @@ func TestChangeRepoFilesForUpdateWithFileRename(t *testing.T) {
533532

534533
// test
535534
filesResponse, err := files_service.ChangeRepoFiles(git.DefaultContext, repo, doer, opts)
536-
a, _ := json.MarshalIndent(filesResponse, "", " ")
537-
fmt.Println(string(a))
538535

539536
// asserts
540537
assert.NoError(t, err)

0 commit comments

Comments
 (0)