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

Improve coverage & fix code smells #4188

Merged

Conversation

saberduck
Copy link
Contributor

Fixes #

@sonarqube-next
Copy link

@@ -151,7 +151,7 @@ public boolean isAvailable() {
*/
public void deploy() throws IOException {
LOG.debug("Detected os: {} arch: {} platform: {}", env.getOsName(), env.getOsArch(), platform);
if (platform == UNSUPPORTED || isAvailable) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should we remove isAvailable altogether?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

isAvailable is needed to know that deployment was successful and embeddednode can be used. We rely on it in NodeCommandBuilder

Copy link
Contributor

@ilia-kebets-sonarsource ilia-kebets-sonarsource left a comment

Choose a reason for hiding this comment

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

LGTM, we can do this change in the feature branch: #4188 (comment)

@ilia-kebets-sonarsource ilia-kebets-sonarsource merged commit ab29cc8 into feature/bundle-node-runtime-in-analyzer Sep 21, 2023
16 of 17 checks passed
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