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

Eliminate assumption that existence of an element in a data structure… #659

Merged
merged 2 commits into from
Feb 10, 2018
Merged

Conversation

tulumvinh
Copy link
Contributor

… means successful backup

if (!bkupMetadata.getStatus().equals(Status.FINISHED) ){
object.put("Snapshotstatus", false);
} else {
object.put("Snapshotstatus", true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor - Simplified version

object.put("Snapshotstatus", bkupMetadata.getStatus().equals(Status.FINISHED))

@vinaykumarchella
Copy link
Contributor

Can you also send this PR on 3.11 branch too

@tulumvinh
Copy link
Contributor Author

Vinay, you're right.

@tulumvinh tulumvinh merged commit 104b9b6 into Netflix:3.x Feb 10, 2018
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