Skip to content

Commit 6b95d75

Browse files
author
soletan
committed
Update lib/connection.js
1 parent 66a63ad commit 6b95d75

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/connection.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,14 @@ p.parseMessage = function() {
324324
length: length
325325
};
326326

327-
if ( id in Connection.mapMsgNames )
328-
{
327+
if ( id in Connection.mapMsgNames ) {
329328
msg.name = Connection.mapMsgNames[id];
330329
var fnc = this["parse" + String.fromCharCode( id )];
331330

332331
return fnc instanceof Function ? fnc( msg ) : msg;
333-
}
334-
else
332+
} else {
335333
throw new Error("Unrecognized message code " + id);
334+
}
336335
};
337336

338337
p.parseR = function(msg) {

0 commit comments

Comments
 (0)