diff options
Diffstat (limited to 'modules/repofiles/content.go')
-rw-r--r-- | modules/repofiles/content.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repofiles/content.go b/modules/repofiles/content.go index d55ca497cd..d35c5a6a67 100644 --- a/modules/repofiles/content.go +++ b/modules/repofiles/content.go @@ -61,7 +61,7 @@ func GetFileContents(repo *models.Repository, treePath, ref string) (*api.FileCo HTMLURL: htmlURL.String(), GitURL: gitURL.String(), DownloadURL: downloadURL.String(), - Type: string(entry.Type), + Type: entry.Type(), Links: &api.FileLinksResponse{ Self: selfURL.String(), GitURL: gitURL.String(), |