Fix remaining lint errors (#19166)

This commit is contained in:
Andy
2017-08-20 15:37:53 -07:00
committed by GitHub
parent 83230ae14e
commit 924fafffc0
861 changed files with 2641 additions and 2198 deletions

View File

@@ -5,7 +5,10 @@ import * as util from 'util';
const app = express();
app.use((req, res, next) => {
if (!req) return next(create('Please login to view this page.', 401));
if (!req) {
next(create('Please login to view this page.', 401));
return;
}
next();
});