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

Use enum instead of Optional<Boolean> for tri-state PreparedLayer.existsInTarget #1867

Closed
chanseokoh opened this issue Jul 23, 2019 · 0 comments · Fixed by #1879
Closed

Use enum instead of Optional<Boolean> for tri-state PreparedLayer.existsInTarget #1867

chanseokoh opened this issue Jul 23, 2019 · 0 comments · Fixed by #1879
Assignees
Labels

Comments

@chanseokoh
Copy link
Member

From #1840 (comment)

Currently

  • Optional.empty --> existence unknown
  • true Optional --> layer exists in the target registry
  • false Optional --> conclusively doesn't exist

Using enum should be more readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant