Remove unnecessary if

This commit is contained in:
David Baker 2017-06-19 16:45:40 +01:00
parent a8165d1707
commit 26cb1404c2

View file

@ -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) {