From 20aedce62f7af022f2b059adbe96244536514836 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 8 Apr 2019 15:26:11 +0200 Subject: [PATCH] more lint --- src/ContentMessages.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ContentMessages.js b/src/ContentMessages.js index dfcfbda375..fa341465b8 100644 --- a/src/ContentMessages.js +++ b/src/ContentMessages.js @@ -26,6 +26,7 @@ import { _t } from './languageHandler'; import Modal from './Modal'; import RoomViewStore from './stores/RoomViewStore'; import encrypt from "browser-encrypt-attachment"; +// eslint-disable-next-line camelcase import png_chunks_extract from "png-chunks-extract"; // Polyfill for Canvas.toBlob API using Canvas.toDataURL @@ -132,8 +133,8 @@ function loadImageElement(imageFile) { // Once ready, create a thumbnail img.onload = function() { URL.revokeObjectURL(objectUrl); - let width = hidpi ? (img.width >> 1) : img.width; - let height = hidpi ? (img.height >> 1) : img.height; + const width = hidpi ? (img.width >> 1) : img.width; + const height = hidpi ? (img.height >> 1) : img.height; deferred.resolve({ img, width, height }); }; img.onerror = function(e) {