Skip to content

Commit f35dcee

Browse files
committed
Fix lint
1 parent 29c42f7 commit f35dcee

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

tests/integration/api_repo_get_contents_test.go

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"net/http"
99
"net/url"
1010
"testing"
11+
"time"
1112

1213
auth_model "code.gitea.io/gitea/models/auth"
1314
repo_model "code.gitea.io/gitea/models/repo"
@@ -33,19 +34,19 @@ func getExpectedContentsResponseForContents(ref, refType, lastCommitSHA string)
3334
gitURL := setting.AppURL + "api/v1/repos/user2/repo1/git/blobs/" + sha
3435
downloadURL := setting.AppURL + "user2/repo1/raw/" + refType + "/" + ref + "/" + treePath
3536
return &api.ContentsResponse{
36-
Name: treePath,
37-
Path: treePath,
38-
SHA: sha,
39-
LastCommitSHA: lastCommitSHA,
37+
Name: treePath,
38+
Path: treePath,
39+
SHA: sha,
40+
LastCommitSHA: lastCommitSHA,
4041
LastCommitWhen: time.Date(2017, time.March, 19, 16, 47, 59, 0, time.FixedZone("", -14400)),
41-
Type: "file",
42-
Size: 30,
43-
Encoding: &encoding,
44-
Content: &content,
45-
URL: &selfURL,
46-
HTMLURL: &htmlURL,
47-
GitURL: &gitURL,
48-
DownloadURL: &downloadURL,
42+
Type: "file",
43+
Size: 30,
44+
Encoding: &encoding,
45+
Content: &content,
46+
URL: &selfURL,
47+
HTMLURL: &htmlURL,
48+
GitURL: &gitURL,
49+
DownloadURL: &downloadURL,
4950
Links: &api.FileLinksResponse{
5051
Self: &selfURL,
5152
GitURL: &gitURL,

0 commit comments

Comments
 (0)