diff --git a/src/hz/fs.h b/src/hz/fs.h index 3f6e767..b747e51 100644 --- a/src/hz/fs.h +++ b/src/hz/fs.h @@ -498,7 +498,7 @@ inline bool fs_path_is_writable(const fs::path& path, std::error_code& ec) std::error_code ignored_ec; // ignore this error const bool is_directory = fs::is_directory(path, ignored_ec); - const bool path_exists = fs::exists(path, ec); + bool path_exists = fs::exists(path, ec); if (ec) { return false; }