From 0e0128c29749651ff733de7eeddad5e18ea46583 Mon Sep 17 00:00:00 2001
From: Bruno Windels <brunow@matrix.org>
Date: Tue, 22 Jan 2019 11:37:18 +0100
Subject: [PATCH] if instead of short-circuit and for readability

---
 src/components/views/rooms/WhoIsTypingTile.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/components/views/rooms/WhoIsTypingTile.js b/src/components/views/rooms/WhoIsTypingTile.js
index b540abf61e..e826380469 100644
--- a/src/components/views/rooms/WhoIsTypingTile.js
+++ b/src/components/views/rooms/WhoIsTypingTile.js
@@ -110,7 +110,9 @@ module.exports = React.createClass({
         // abort all the timers for the users that started typing again
         usersThatStartedTyping.forEach((m) => {
             const timer = this.state.delayedStopTypingTimers[m.userId];
-            timer && timer.abort();
+            if (timer) {
+                timer.abort();
+            }
         });
         // prepare new delayedStopTypingTimers object to update state with
         let delayedStopTypingTimers = Object.assign({}, this.state.delayedStopTypingTimers);