Skip to content

Commit 25341af

Browse files
author
Hans Kristian Flaatten
committed
fix(eslint): consistent return at the end of functions
1 parent 13123cd commit 25341af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/admin/controller.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ route.post('/limits/:userId/:appId', (req, res, next) => {
110110
return res.redirect(303, '/admin/limits');
111111
}
112112

113-
user.save().catch(next).then(() => res.redirect(303, '/admin/limits'));
113+
return user.save().catch(next).then(() => res.redirect(303, '/admin/limits'));
114114
});
115115
});
116116

@@ -182,7 +182,7 @@ route.post('/requests/:userId/:appId', (req, res, next) => {
182182
return res.redirect(303, '/admin/requests');
183183
}
184184

185-
user.save().catch(next).then(() => res.redirect(303, '/admin/requests'));
185+
return user.save().catch(next).then(() => res.redirect(303, '/admin/requests'));
186186
});
187187
});
188188

0 commit comments

Comments
 (0)