We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62c862d commit a61d17aCopy full SHA for a61d17a
src/luxrays/utils/config.cpp
@@ -59,12 +59,12 @@ std::filesystem::path GetCacheDir() {
59
// XDG standard says XDG_CACHE_HOME is unset by default.
60
std::filesystem::path xdgCacheHome = GetEnvPath("XDG_CACHE_HOME");
61
62
- if (!xdgCacheHome.size()) {
+ if (xdgCacheHome.empty()) {
63
// HOME should never be unset, but we better not want to
64
// crash if that happens.
65
std::filesystem::path home = GetEnvPath("HOME");
66
67
- if (home.size()) {
+ if (home.empty()) {
68
xdgCacheHome = home / ".config";
69
}
70
else {
0 commit comments