mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
🎨 Fix lint errors
This commit is contained in:
@@ -5,7 +5,7 @@ const loadImage = require('blueimp-load-image');
|
||||
// Documentation for `options` (`LoadImageOptions`):
|
||||
// https://github.com/blueimp/JavaScript-Load-Image/tree/v2.18.0#options
|
||||
exports.autoOrientImage = (fileOrBlobOrURL, options = {}) => {
|
||||
const {quality} = options;
|
||||
const { quality } = options;
|
||||
if (typeof quality !== 'undefined' && typeof quality !== 'number') {
|
||||
throw new TypeError(`\`options.quality\` must be a number; got ${typeof quality}`);
|
||||
}
|
||||
@@ -23,7 +23,7 @@ exports.autoOrientImage = (fileOrBlobOrURL, options = {}) => {
|
||||
);
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
loadImage(fileOrBlobOrURL, canvasOrError => {
|
||||
loadImage(fileOrBlobOrURL, (canvasOrError) => {
|
||||
if (canvasOrError.type === 'error') {
|
||||
const error = new Error('autoOrientImage: Failed to process image');
|
||||
error.cause = canvasOrError;
|
||||
|
||||
Reference in New Issue
Block a user