Skip to content

Commit 54998af

Browse files
committed
clean code
1 parent 7400b16 commit 54998af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ class SocketServer extends EventEmitter{
160160
//. checking async status....
161161
if (requestData.data.async == true) {
162162
console.log('async true')
163-
const uuid = CoCreateUUID.generate(), asyncMessage = this.asyncMessages.get(socket.config.key);
163+
const uuid = CoCreateUUID.generate()
164+
const asyncMessage = this.asyncMessages.get(socket.config.key);
164165
socket.config.asyncId = uuid;
165166
if (asyncMessage) {
166167
asyncMessage.defineMessage(uuid);
@@ -178,7 +179,7 @@ class SocketServer extends EventEmitter{
178179
const self = this;
179180
const responseData = JSON.stringify({
180181
module: messageName,
181-
data: data
182+
data
182183
});
183184

184185
const asyncId = socket.config.asyncId

0 commit comments

Comments
 (0)