File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
services/repository/files Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ func TestMain(m *testing.M) {
23
23
func getExpectedGiteaContentsResponse () * api.ContentsResponse {
24
24
treePath := ".gitea"
25
25
sha := "b5f7dda5e39c1eef0d4da9c20b7d8322daa7add5"
26
- encoding := ""
27
- content := ""
28
26
selfURL := "https://try.gitea.io/api/v1/repos/user2/repo1/contents/" + treePath + "?ref=master"
29
27
htmlURL := "https://try.gitea.io/user2/repo1/src/branch/master/" + treePath
30
28
gitURL := "https://try.gitea.io/api/v1/repos/user2/repo1/git/blobs/" + sha
@@ -36,8 +34,6 @@ func getExpectedGiteaContentsResponse() *api.ContentsResponse {
36
34
LastCommitSHA : "94dc45d6ec51090b36c4d5bd5d9e6f5a70da9edf" ,
37
35
Type : "dir" ,
38
36
Size : 0 ,
39
- Encoding : & encoding ,
40
- Content : & content ,
41
37
URL : & selfURL ,
42
38
HTMLURL : & htmlURL ,
43
39
GitURL : & gitURL ,
@@ -127,9 +123,6 @@ func TestGetContentsOrListForDir(t *testing.T) {
127
123
readmeContentsResponse .Content = nil
128
124
129
125
giteaContentsResponse := getExpectedGiteaContentsResponse ()
130
- // because will be in a list, doesn't have encoding and content
131
- giteaContentsResponse .Encoding = nil
132
- giteaContentsResponse .Content = nil
133
126
// because .gitea is a directory, doesn't have download url
134
127
giteaContentsResponse .DownloadURL = nil
135
128
You can’t perform that action at this time.
0 commit comments