Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ductaily committed Aug 22, 2024
1 parent 03fbeab commit c6c4850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ord.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const fInitializeGlobal = (csn) => {
const capNamespace = csn.namespace;
// namespace variable value if present in cdsrc.json take it there or else from package.json
//if cdsrc.json does not have applicationNamespace, then use just the namespace
const namespace = cds.env["ord"]?.namespace || packageName.replace(/[^\w\/]/g, "").replace(/\//, ".");
const namespace = cds.env["ord"]?.namespace || packageName.replace(/[^\w/]/g, "").replace(/\//, ".");
const applicationNamespace = cds.env?.export?.asyncapi?.applicationNamespace;

if (applicationNamespace && fGetNamespaceComponents(namespace) !== fGetNamespaceComponents(applicationNamespace)) {
Expand Down

0 comments on commit c6c4850

Please sign in to comment.