Skip to content

Commit

Permalink
fix(someip): output curly braces for undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mbehr1 committed Mar 7, 2021
1 parent 40df13a commit 8a3c94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dltSomeIpPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class DltSomeIpPlugin extends DltTransformationPlugin {
* @returns textual representation
*/
static stringify(val: any): string {
if (!val) { return ''; }
if (!val) { return '{}'; }
// bigints can't be serialized naturally
return JSON.stringify(val, (k, v) => typeof v === 'bigint' ? `${v}n` : v);

Expand Down

0 comments on commit 8a3c94d

Please sign in to comment.