fix: pageHelper getFileExtension missing return

This commit is contained in:
NGPixel
2019-10-18 20:23:10 -04:00
parent f8c3aef7bd
commit f4816d0628
3 changed files with 10 additions and 9 deletions

View File

@@ -101,7 +101,7 @@ module.exports = {
* Get file extension from content type
*/
getFileExtension(contentType) {
_.get(contentToExt, contentType, 'txt')
return _.get(contentToExt, contentType, 'txt')
},
/**
* Get content type from file extension