Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed May 21, 2024
1 parent ca5a639 commit aa8c01f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/src/arrow/adapters/orc/adapter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit aa8c01f

Please sign in to comment.