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

ASPL-587 #161

Merged
merged 6 commits into from
Jun 14, 2024
Merged

ASPL-587 #161

merged 6 commits into from
Jun 14, 2024

Conversation

vishalhcl-5960
Copy link

if(m_status == null) {// In case of internet disconnect Status is set to null.
m_status = FAILED;
}
if (m_status.equalsIgnoreCase("Ready")) {

Choose a reason for hiding this comment

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

These changes now have 2 "if" cases for handling the "Ready" state. The new conditional if (m_status.equalsIgnoreCase("Ready")) { as well as the existing conditional if(m_status != null && m_status.equalsIgnoreCase("Ready")) {.
Also, each of the status checks does an "if" check, as opposed to an "else if" or a switch statement. We should clean that up.
Finally, the indentation in this area makes the code very difficult to follow. Can you fix that?

Copy link
Author

Choose a reason for hiding this comment

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

Sure, Matt. Cleaned the code & fixed the indentation too.

@vishalhcl-5960 vishalhcl-5960 merged commit f8119a6 into HCL-TECH-SOFTWARE:master Jun 14, 2024
2 checks passed
@vishalhcl-5960 vishalhcl-5960 deleted the ASPL-587 branch June 14, 2024 04:49
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