From 0a4ef44bcf8a1e92f6a6c998531e9eeb5b144e35 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 28 Mar 2019 18:29:48 +0100 Subject: [PATCH] fix lint --- src/components/views/rooms/WhoIsTypingTile.js | 3 +-- src/utils/ResizeNotifier.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/views/rooms/WhoIsTypingTile.js b/src/components/views/rooms/WhoIsTypingTile.js index 95cf0717c7..eb5e14876d 100644 --- a/src/components/views/rooms/WhoIsTypingTile.js +++ b/src/components/views/rooms/WhoIsTypingTile.js @@ -64,8 +64,7 @@ module.exports = React.createClass({ const isVisible = this._isVisible(this.state); if (this.props.onShown && !wasVisible && isVisible) { this.props.onShown(); - } - else if (this.props.onHidden && wasVisible && !isVisible) { + } else if (this.props.onHidden && wasVisible && !isVisible) { this.props.onHidden(); } }, diff --git a/src/utils/ResizeNotifier.js b/src/utils/ResizeNotifier.js index ff4b79091b..35ec1a0269 100644 --- a/src/utils/ResizeNotifier.js +++ b/src/utils/ResizeNotifier.js @@ -22,7 +22,6 @@ import { EventEmitter } from "events"; import { throttle } from "lodash"; export default class ResizeNotifier extends EventEmitter { - constructor() { super(); // with default options, will call fn once at first call, and then every x ms