Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tempname11 committed Oct 9, 2015
1 parent 26e6e18 commit 7417234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/api-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ export const searchRoomID = wrap('searchRoomID', res => {
});

export const createRoom = wrap('createRoom', res => {
assert(res instanceof Object);
throwWhen(res instanceof Object);
if (res.status === 'OK') {
return true;
}
assert(res.status === 'ERROR');
assert(typeof res.description === 'string');
throwWhen(res.status === 'ERROR');
throwWhen(typeof res.description === 'string');
return true;
});

0 comments on commit 7417234

Please sign in to comment.