Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c50f64c

Browse files
committed
fix linting errors
1 parent 81f7c53 commit c50f64c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/routes/server.routes.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Router } from 'express';
22
import { renderIndex } from '../views/index';
33
import { get404Sketch } from '../views/404Page';
44
import { userExists } from '../controllers/user.controller';
5-
import { getProjectAsset } from '../controllers/project.controller';
65

76
const router = new Router();
87

server/utils/isAuthenticated.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export default function isAuthenticated(req, res, next) {
22
if (req.user) {
3-
return next();
3+
next();
4+
return;
45
}
56
res.status(403).send({
67
success: false,

0 commit comments

Comments
 (0)