Remove unnecessary if

pull/21833/head
David Baker 2017-06-19 16:45:40 +01:00
parent a8165d1707
commit 26cb1404c2
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ function createRoom(opts) {
let roomId; let roomId;
return client.createRoom(createOpts).finally(function() { return client.createRoom(createOpts).finally(function() {
if (modal) modal.close(); modal.close();
}).then(function(res) { }).then(function(res) {
roomId = res.room_id; roomId = res.room_id;
if (opts.dmUserId) { if (opts.dmUserId) {