summaryrefslogtreecommitdiffstats
path: root/modules/repofiles/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repofiles/content.go')
-rw-r--r--modules/repofiles/content.go2
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(),