Skip to content

Commit f7b76c3

Browse files
committed
updated server code to comply with linting
1 parent 06a2771 commit f7b76c3

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

Diff for: templates/express/lib/api/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use strict';
22

33
exports.awesomeThings = function(req, res) {
4-
res.json([
5-
'HTML5 Boilerplate',
6-
'AngularJS',
7-
'Karma',
8-
'Express'
9-
]);
4+
res.json([
5+
'HTML5 Boilerplate',
6+
'AngularJS',
7+
'Karma',
8+
'Express'
9+
]);
1010
};

Diff for: templates/express/server.js

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
/**
2-
* Module dependencies.
3-
*/
1+
'use strict';
42

5-
var express = require('express')
6-
, http = require('http')
7-
, path = require('path')
8-
, api = require('./lib/api');
3+
var express = require('express'),
4+
http = require('http'),
5+
path = require('path'),
6+
api = require('./lib/api');
97

108
var app = express();
119

@@ -18,11 +16,11 @@ app.use(express.methodOverride());
1816
app.use(app.router);
1917

2018
// development only
21-
if ('development' == app.get('env')) {
19+
if ('development' === app.get('env')) {
2220
app.use(express.static(path.join(__dirname, '.tmp')));
2321
app.use(express.static(path.join(__dirname, 'app')));
24-
app.use(express.errorHandler());
25-
}
22+
app.use(express.errorHandler());
23+
}
2624
// production only
2725
else {
2826
app.use(express.favicon(path.join(__dirname, 'public/favicon.ico')));

0 commit comments

Comments
 (0)