lint fixes

This commit is contained in:
arp 2020-10-13 15:55:30 +02:00
parent 94538bfaf4
commit d98efc0433
7 changed files with 20 additions and 23 deletions

View file

@ -2,9 +2,9 @@ export class RoomIdentifier {
public anonymous: boolean;
public id:string
constructor(roomID: string) {
if (roomID.indexOf('_/') === 0) {
if (roomID.startsWith('_/')) {
this.anonymous = true;
} else if(roomID.indexOf('@/') === 0) {
} else if(roomID.startsWith('@/')) {
this.anonymous = false;
} else {
throw new Error('Incorrect room ID: '+roomID);