From d78e551de9a915a0dd32692c3fdafb3c5172af36 Mon Sep 17 00:00:00 2001 From: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com> Date: Tue, 24 Aug 2021 12:24:54 +0300 Subject: [PATCH] Update src/Disks/DiskWebServer.cpp Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com> --- src/Disks/DiskWebServer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Disks/DiskWebServer.cpp b/src/Disks/DiskWebServer.cpp index a541ebc58ae..ddccefcb7fb 100644 --- a/src/Disks/DiskWebServer.cpp +++ b/src/Disks/DiskWebServer.cpp @@ -263,9 +263,7 @@ DiskDirectoryIteratorPtr DiskWebServer::iterateDirectory(const String & path) throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot extract uuid for: {}", path); /// Do not throw if it is not a query, but disk load. - bool can_throw = false; - if (CurrentThread::isInitialized() && CurrentThread::get().getQueryContext()) - can_throw = true; + bool can_throw = CurrentThread::isInitialized() && CurrentThread::get().getQueryContext(); try {