Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix addScope function #41

Merged

Conversation

ddvlanck
Copy link
Collaborator

@ddvlanck ddvlanck commented Feb 7, 2024

To determine the scope, first the packageBaseUri was checked and then the this.config.publicationEnvironment variable was is set by CLI. However, the first one is more specific than the latter, meaning that the "if"-statement with the latter will always be true.

Therefore, we switch both if-statements.

Copy link
Contributor

@KristofVDB1 KristofVDB1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Is there a reason why you removed the optional chaining here? Does URI always exist? If so, then feel free to merge!

@ddvlanck ddvlanck merged commit d05b57f into main Feb 8, 2024
0 of 18 checks passed
@ddvlanck ddvlanck deleted the SDTT-264-oslo-converter-uml-ea-does-not-set-scope-correctly branch February 8, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants