Skip to content

Commit 13b9630

Browse files
committed
chore(style) Clarify serveClient logic
1 parent d1a52cc commit 13b9630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: app/templates/server/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(config.seedDB) { require('./config/seed'); }
2121
var app = express();
2222
var server = require('http').createServer(app);<% if (filters.socketio) { %>
2323
var socketio = require('socket.io')(server, {
24-
serveClient: (config.env === 'production') ? false : true,
24+
serveClient: config.env !== 'production',
2525
path: '/socket.io-client'
2626
});
2727
require('./config/socketio')(socketio);<% } %>
@@ -34,4 +34,4 @@ server.listen(config.port, config.ip, function () {
3434
});
3535

3636
// Expose app
37-
exports = module.exports = app;
37+
exports = module.exports = app;

0 commit comments

Comments
 (0)