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

fixed token #647

Merged
merged 4 commits into from
Nov 16, 2023
Merged

fixed token #647

merged 4 commits into from
Nov 16, 2023

Conversation

Yuqi-Du
Copy link
Contributor

@Yuqi-Du Yuqi-Du commented Nov 15, 2023

No description provided.

@Yuqi-Du Yuqi-Du requested a review from a team as a code owner November 15, 2023 19:56
@kathirsvn kathirsvn merged commit c6c8fff into main Nov 16, 2023
3 checks passed
@kathirsvn kathirsvn deleted the fixed_token branch November 16, 2023 11:40
@@ -135,7 +135,9 @@ public CqlSession getSession() {
* token from the request will be compared with this to perform authentication.
*/
private String getFixedToken() {
return operationsConfig.databaseConfig().fixedToken();
return operationsConfig.databaseConfig().fixedToken().isPresent()
Copy link
Contributor

Choose a reason for hiding this comment

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

Going forward, it's simpler to use optional.orElse(null) I think

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.

4 participants