Remove event emits. Setter handles emitting on change.

master
Håvar Aambø Fosstveit 2019-11-04 20:37:25 +01:00
parent b108fbac87
commit d3d3e9626e
1 changed files with 0 additions and 2 deletions

View File

@ -106,12 +106,10 @@ class Peer extends EventEmitter
email && (this.email = email);
this.authenticated = true;
this.emit('authenticationChanged');
}
else
{
this.authenticated = false;
this.emit('authenticationChanged');
}
}