mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
refactor: Use else if instead of nested else-if conditions
Replaces nested else-if with else if for consistency and readability. No functional changes. Signed-off-by: Vysochyn, Illia <illia.vysochyn@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ed15408592
commit
f4bd4e603d
@@ -30,11 +30,9 @@ bool createCompilerCachePath(std::string &cacheDir) {
|
||||
if (NEO::SysCalls::mkdir(joinPath(cacheDir, "neo_compiler_cache")) == 0) {
|
||||
cacheDir = joinPath(cacheDir, "neo_compiler_cache");
|
||||
return true;
|
||||
} else {
|
||||
if (errno == EEXIST) {
|
||||
cacheDir = joinPath(cacheDir, "neo_compiler_cache");
|
||||
return true;
|
||||
}
|
||||
} else if (errno == EEXIST) {
|
||||
cacheDir = joinPath(cacheDir, "neo_compiler_cache");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,4 +91,4 @@ bool isAnyIgcEnvVarSet() {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
} // namespace NEO
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user