Skip to content

Commit d75b4d5

Browse files
author
Dimitri Nikitopoulos
committed
fix: typo
1 parent 9a57776 commit d75b4d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rostsd_gen/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ function saveMsgConstructorAsTSD(rosMsgInterface, fd) {
306306
fs.writeSync(fd, ` export interface ${msgName}Constants {\n`);
307307
for (const constant of rosMsgInterface.ROSMessageDef.constants) {
308308
if(primitiveType2JSName(constant.type) === "string"){
309-
fs.writeSync(fd, ` ${constant.name} = "${constant.value}";\n`);
309+
fs.writeSync(fd, ` ${constant.name} = "${constant.value}",\n`);
310310
} else {
311-
fs.writeSync(fd, ` ${constant.name} = ${constant.value};\n`);
311+
fs.writeSync(fd, ` ${constant.name} = ${constant.value},\n`);
312312
}
313313
}
314314
fs.writeSync(fd, ' }\n');

0 commit comments

Comments
 (0)