Skip to content
Snippets Groups Projects
Commit aef6db64 authored by Parker, Peter's avatar Parker, Peter
Browse files

Refs #22608 - Implicit optional conversions to bool are not allowed.

parent 9ad12400
Branches shorten_commit_message_requirement
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ bool ONCat::isUserLoggedIn() const { ...@@ -171,7 +171,7 @@ bool ONCat::isUserLoggedIn() const {
return false; return false;
} }
return m_tokenStore->getToken(); return m_tokenStore->getToken().is_initialized();
} }
void ONCat::logout() { void ONCat::logout() {
...@@ -342,7 +342,7 @@ void ONCat::refreshTokenIfNeeded(const DateAndTime &currentTime) { ...@@ -342,7 +342,7 @@ void ONCat::refreshTokenIfNeeded(const DateAndTime &currentTime) {
throw CatalogError(ie.what()); throw CatalogError(ie.what());
} }
} else if (m_flow == OAuthFlow::RESOURCE_OWNER_CREDENTIALS) { } else if (m_flow == OAuthFlow::RESOURCE_OWNER_CREDENTIALS) {
if (!currentToken) { if (!currentToken.is_initialized()) {
return; return;
} }
if (!currentToken->isExpired(currentTime)) { if (!currentToken->isExpired(currentTime)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment