added missing originalFsPath

This commit is contained in:
Henry Oswald 2016-12-13 14:29:04 +00:00
parent b38e7d3078
commit b166c86197

View file

@ -47,10 +47,12 @@ module.exports =
_getConvertedFileAndCache: (bucket, key, convertedKey, opts, callback)-> _getConvertedFileAndCache: (bucket, key, convertedKey, opts, callback)->
convertedFsPath = "" convertedFsPath = ""
originalFsPath = ""
async.series [ async.series [
(cb) => (cb) =>
@_convertFile bucket, key, opts, (err, fileSystemPath, originalFsPath) -> @_convertFile bucket, key, opts, (err, fileSystemPath, originalFsPath) ->
convertedFsPath = fileSystemPath convertedFsPath = fileSystemPath
originalFsPath = originalFsPath
cb err cb err
(cb)-> (cb)->
ImageOptimiser.compressPng convertedFsPath, cb ImageOptimiser.compressPng convertedFsPath, cb