hyprland: clangd cleanup

This commit is contained in:
Austin Horstman
2024-06-22 23:19:48 -05:00
parent ccc3c13212
commit f6482c36dc
6 changed files with 13 additions and 21 deletions

View File

@ -26,7 +26,7 @@ std::filesystem::path IPC::getSocketFolder(const char* instanceSig) {
const char* xdgRuntimeDirEnv = std::getenv("XDG_RUNTIME_DIR");
std::filesystem::path xdgRuntimeDir;
// Only set path if env variable is set
if (xdgRuntimeDirEnv) {
if (xdgRuntimeDirEnv != nullptr) {
xdgRuntimeDir = std::filesystem::path(xdgRuntimeDirEnv);
}