Skip to content

Commit 0b5a73a

Browse files
committed
refactor(js): remove trailing semicolons
1 parent cb5b941 commit 0b5a73a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

examples/js/express/mysql/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ const register = (app, pool) => {
107107
})
108108
}
109109

110-
exports.register = register;
110+
exports.register = register

src/templates/routes.js.ejs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
const register = (app, pool) => {
22
<%
33
endpoints.forEach(function(endpoint) {
4-
const path = endpoint.path;
4+
const path = endpoint.path
55
66
endpoint.methods.forEach(function(method) {
77
if (!method.query) {
88
// filter out aggregated_queries for a while (see #17)
99
return
1010
}
11-
const hasGetOne = method.name === 'get';
12-
const hasGetMany = method.name === 'get_list';
13-
const sql = formatQuery(method.query);
14-
const params = extractParamsFromQuery(method.query);
11+
const hasGetOne = method.name === 'get'
12+
const hasGetMany = method.name === 'get_list'
13+
const sql = formatQuery(method.query)
14+
const params = extractParamsFromQuery(method.query)
1515
const formattedParams = params.length > 0
1616
? '\n { ' + formatParamsAsJavaScriptObject(params) + ' },'
1717
: ''
@@ -84,13 +84,13 @@ endpoints.forEach(function(endpoint) {
8484
})
8585
<%
8686
}
87-
});
88-
});
87+
})
88+
})
8989
%>
9090
app.use((error, req, res, next) => {
9191
console.error(error)
9292
res.status(500).json({ "error": "Internal Server Error" })
9393
})
9494
}
9595

96-
exports.register = register;
96+
exports.register = register

0 commit comments

Comments
 (0)