mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:38:25 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -10,7 +10,9 @@ export function isWSLEnv(): boolean {
|
||||
}
|
||||
|
||||
export async function isWSL(): Promise<boolean> {
|
||||
if (wslCached !== null) return wslCached;
|
||||
if (wslCached !== null) {
|
||||
return wslCached;
|
||||
}
|
||||
if (isWSLEnv()) {
|
||||
wslCached = true;
|
||||
return wslCached;
|
||||
|
||||
Reference in New Issue
Block a user