mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Fix remaining lint errors (#19166)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user