feat: Use prettier-eslint to format code
This commit is contained in:
committed by
mrugesh mohapatra
parent
1ba67c4e2b
commit
b13e5fb41a
@ -32,9 +32,7 @@ function createShortLinkHandler(app) {
|
||||
if (!article) {
|
||||
return res.redirect('/news');
|
||||
}
|
||||
const {
|
||||
slugPart
|
||||
} = article;
|
||||
const { slugPart } = article;
|
||||
const slug = `/news/${slugPart}`;
|
||||
return res.redirect(slug);
|
||||
}
|
||||
|
Reference in New Issue
Block a user