We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a63ad commit 6b95d75Copy full SHA for 6b95d75
lib/connection.js
@@ -324,15 +324,14 @@ p.parseMessage = function() {
324
length: length
325
};
326
327
- if ( id in Connection.mapMsgNames )
328
- {
+ if ( id in Connection.mapMsgNames ) {
329
msg.name = Connection.mapMsgNames[id];
330
var fnc = this["parse" + String.fromCharCode( id )];
331
332
return fnc instanceof Function ? fnc( msg ) : msg;
333
- }
334
- else
+ } else {
335
throw new Error("Unrecognized message code " + id);
+ }
336
337
338
p.parseR = function(msg) {
0 commit comments