diff OrthancFramework/Sources/FileStorage/StorageAccessor.cpp @ 4912:45d6ce72a84e

fix linking of Sanitizer sample plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Feb 2022 17:46:28 +0100
parents f656fb878b50
children 2b3b0ab88c1d
line wrap: on
line diff
--- a/OrthancFramework/Sources/FileStorage/StorageAccessor.cpp	Mon Feb 21 14:55:12 2022 +0100
+++ b/OrthancFramework/Sources/FileStorage/StorageAccessor.cpp	Tue Feb 22 17:46:28 2022 +0100
@@ -239,11 +239,7 @@
                                        FileContentType contentType,
                                        uint64_t end /* exclusive */)
   {
-    if (cache_.FetchStartRange(target, fileUuid, contentType, end))
-    {
-      return;
-    }
-    else
+    if (!cache_.FetchStartRange(target, fileUuid, contentType, end))
     {
       MetricsTimer timer(*this, METRICS_READ);
       std::unique_ptr<IMemoryBuffer> buffer(area_.ReadRange(fileUuid, contentType, 0, end));