From 26cb1404c22445ad73f3e258d916980997df5eaf Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 19 Jun 2017 16:45:40 +0100 Subject: [PATCH] Remove unnecessary if --- src/createRoom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/createRoom.js b/src/createRoom.js index 8f0f9bd148..ce83f31c27 100644 --- a/src/createRoom.js +++ b/src/createRoom.js @@ -80,7 +80,7 @@ function createRoom(opts) { let roomId; return client.createRoom(createOpts).finally(function() { - if (modal) modal.close(); + modal.close(); }).then(function(res) { roomId = res.room_id; if (opts.dmUserId) {