From aa8c01f73cf9836c1655b0d16ada8f20b01c5113 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Wed, 22 May 2024 08:40:01 +1100 Subject: [PATCH] make linter happy --- cpp/src/arrow/adapters/orc/adapter.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpp/src/arrow/adapters/orc/adapter.cc b/cpp/src/arrow/adapters/orc/adapter.cc index 73430af2c2837..bdd594850ddca 100644 --- a/cpp/src/arrow/adapters/orc/adapter.cc +++ b/cpp/src/arrow/adapters/orc/adapter.cc @@ -194,11 +194,11 @@ Status CheckTimeZoneDatabaseAvailability() { auto conda_prefix = std::getenv("CONDA_PREFIX"); auto tz_dir_raw = std::getenv("TZDIR"); std::string tz_dir = conda_prefix != nullptr - ? std::string(conda_prefix) + "/share/zoneinfo" - : std::string(tz_dir_raw != nullptr ? tz_dir_raw : ""); + ? std::string(conda_prefix) + "/share/zoneinfo" + : std::string(tz_dir_raw != nullptr ? tz_dir_raw : ""); bool is_tzdb_available = (!tz_dir.empty()) - ? std::filesystem::exists(tz_dir) - : std::filesystem::exists("/usr/share/zoneinfo"); + ? std::filesystem::exists(tz_dir) + : std::filesystem::exists("/usr/share/zoneinfo"); if (!is_tzdb_available) { return Status::Invalid( "IANA time zone database is unavailable but required by ORC."