Skip to content

Commit c5f7d8c

Browse files
committed
style(endpoint): lint fix endpoint
1 parent 89d28cd commit c5f7d8c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: templates/endpoint/basename.controller.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ function removeEntity(res) {
4141
if(entity) {
4242
<% if(filters.mongooseModels) { %>return entity.remove()<% }
4343
if(filters.sequelizeModels) { %>return entity.destroy()<% } %>
44-
.then(() => {
45-
return res.status(204).end();
46-
});
44+
.then(() => res.status(204).end());
4745
}
4846
};
4947
}

0 commit comments

Comments
 (0)