Skip to content

Commit 2074fbe

Browse files
committed
refactor(ts): remove trailing semicolons
1 parent 0b5a73a commit 2074fbe

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

examples/ts/express/mysql/routes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ const register = (app: Express, pool: Pool) => {
110110
})
111111
}
112112

113-
exports.register = register;
113+
exports.register = register

src/templates/routes.ts.ejs

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ import { Pool } from 'mysql'
44
const register = (app: Express, pool: Pool) => {
55
<%
66
endpoints.forEach(function(endpoint) {
7-
const path = endpoint.path;
7+
const path = endpoint.path
88
99
endpoint.methods.forEach(function(method) {
1010
if (!method.query) {
1111
// filter out aggregated_queries for a while (see #17)
1212
return
1313
}
14-
const hasGetOne = method.name === 'get';
15-
const hasGetMany = method.name === 'get_list';
16-
const sql = formatQuery(method.query);
17-
const params = extractParamsFromQuery(method.query);
14+
const hasGetOne = method.name === 'get'
15+
const hasGetMany = method.name === 'get_list'
16+
const sql = formatQuery(method.query)
17+
const params = extractParamsFromQuery(method.query)
1818
const formattedParams = params.length > 0
1919
? '\n { ' + formatParamsAsJavaScriptObject(params) + ' },'
2020
: ''
@@ -87,13 +87,13 @@ endpoints.forEach(function(endpoint) {
8787
})
8888
<%
8989
}
90-
});
91-
});
90+
})
91+
})
9292
%>
9393
app.use((error: any, req: Request, res: Response, next: NextFunction) => {
9494
console.error(error)
9595
res.status(500).json({ "error": "Internal Server Error" })
9696
})
9797
}
9898

99-
exports.register = register;
99+
exports.register = register

0 commit comments

Comments
 (0)