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

Strange usage of Preconditions.checkNotNull #510

Closed
chingor13 opened this issue Dec 1, 2020 · 0 comments · Fixed by #539
Closed

Strange usage of Preconditions.checkNotNull #510

chingor13 opened this issue Dec 1, 2020 · 0 comments · Fixed by #539
Assignees
Labels
type: cleanup An internal cleanup or hygiene concern.

Comments

@chingor13
Copy link
Contributor

useAccessToken(Preconditions.checkNotNull(refreshAccessToken(), "new access token"));
uses Preconditions within the logic of the function rather than its standard usage as a guard clause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants