Skip to content

Commit ad96dcb

Browse files
Fix the condition in LookupApi (#861)
Condition always evaluates to true Relates-To: OLPEDGE-1989 Signed-off-by: Mykhailo Kuchma <ext-mykhailo.kuchma@here.com>
1 parent 712a3bb commit ad96dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

olp-cpp-sdk-dataservice-read/src/ApiClientLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ApiClientLookup::ApiClientResponse ApiClientLookup::LookupApi(
6666
std::unique_lock<repository::NamedMutex> lock(mutex, std::adopt_lock);
6767

6868
// If we are not planning to go online or access the cache, release the lock.
69-
if (options != CacheOnly || options != OnlineOnly) {
69+
if (options != CacheOnly && options != OnlineOnly) {
7070
mutex.lock();
7171
}
7272

0 commit comments

Comments
 (0)