From ede45cea8706eb8540e466df9861c2af8ebf9c44 Mon Sep 17 00:00:00 2001 From: RblSb Date: Sun, 4 Jul 2021 03:59:50 +0300 Subject: Reformat --- src/Client.hx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/Client.hx') diff --git a/src/Client.hx b/src/Client.hx index c7bc256..254e294 100644 --- a/src/Client.hx +++ b/src/Client.hx @@ -18,7 +18,6 @@ typedef ClientData = { } class Client { - #if nodejs public final ws:WebSocket; public final id:Int; @@ -33,17 +32,18 @@ class Client { #if nodejs public function new(?ws:WebSocket, ?req:IncomingMessage, ?id:Int, name:String, group:Int) { - #else - public function new(name:String, group:Int) { - #end - #if nodejs this.ws = ws; this.req = req; this.id = id; - #end this.name = name; this.group = new EnumFlags(group); } + #else + public function new(name:String, group:Int) { + this.name = name; + this.group = new EnumFlags(group); + } + #end inline function get_isUser():Bool { return group.has(User); @@ -85,5 +85,4 @@ class Client { public static function fromData(data:ClientData):Client { return new Client(data.name, data.group); } - } -- cgit v1.2.3