Permalink
Browse files

fixing syntax error

  • Loading branch information...
1 parent 0809bf5 commit fd82e04d6008158cb9bc9eca20e8d1f877e26b69 @kandelakig committed Apr 15, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 http.js
View
9 http.js
@@ -8,11 +8,12 @@ exports._connectionListener = connectionListener;
const Server = net.Server.extend({
constructor: function Server(requestListener) {
if (!(this instanceof Server)) return new Server(requestListener);
- }
- net.Server.call(this, {}, connectionListener);
+
+ net.Server.call(this, {}, connectionListener);
- if (requestListener) {
- this.addListener('request', requestListener);
+ if (requestListener) {
+ this.addListener('request', requestListener);
+ }
}
});
exports.Server = Server;

0 comments on commit fd82e04

Please sign in to comment.