Remove unnecessary console warning

This commit is contained in:
Jinksi 2017-11-18 14:56:45 +10:00
parent 1b6d5f8164
commit 920e635d71

View file

@ -4,7 +4,8 @@ const resizedDir = '/images/uploads/resized/'
const getImageSrcset = path => {
if (path.indexOf('http') >= 0) {
return console.warn('Cannot get srcset for external image: ' + path)
// Cannot get srcset for external image
return
}
const filename = path.split('.').shift()
const extname = path.split('.').pop()