Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dnikitop committed Oct 14, 2024
1 parent 9a57776 commit d75b4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rostsd_gen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ function saveMsgConstructorAsTSD(rosMsgInterface, fd) {
fs.writeSync(fd, ` export interface ${msgName}Constants {\n`);
for (const constant of rosMsgInterface.ROSMessageDef.constants) {
if(primitiveType2JSName(constant.type) === "string"){
fs.writeSync(fd, ` ${constant.name} = "${constant.value}";\n`);
fs.writeSync(fd, ` ${constant.name} = "${constant.value}",\n`);
} else {
fs.writeSync(fd, ` ${constant.name} = ${constant.value};\n`);
fs.writeSync(fd, ` ${constant.name} = ${constant.value},\n`);
}
}
fs.writeSync(fd, ' }\n');
Expand Down

0 comments on commit d75b4d5

Please sign in to comment.