Fix typos

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
Alexandre Bodin 2020-03-09 14:04:05 +01:00
parent 939c8354c0
commit 571e829b7a

View File

@ -9,12 +9,12 @@ const { bytesToKbytes } = require('../utils/file');
const getMetadatas = buffer =>
sharp(buffer)
.metadata()
.catch(() => ({})); // ingore errors
.catch(() => ({})); // ignore errors
const getDimensions = buffer =>
getMetadatas(buffer)
.then(({ width, height }) => ({ width, height }))
.catch(() => ({})); // ingore errors
.catch(() => ({})); // ignore errors
const THUMBNAIL_RESIZE_OPTIONS = {
width: 245,