Skip to content

Commit

Permalink
Wrap function in parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Hultman committed May 6, 2016
1 parent ca9ada9 commit fa6e6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodejs/dist/uws.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

const EventEmitter = require('events');

const uws = () => {
const uws = (() => {
try {
return require(`./uws_${process.platform}_${process.versions.modules}`);
} catch (e) {
console.error('Error: Compilation of µWebSockets has failed and there is no pre-compiled binary ' +
'available for your system. Please install a supported C++ compiler and reinstall the module \'uws\'.');
process.exit(-1);
}
}();
})();
const NativeServer = uws.Server;
const EE_ERROR = "Registering more than one listener to a WebSocket is not supported.";

Expand Down

0 comments on commit fa6e6e0

Please sign in to comment.