mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 05:51:24 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -17,7 +17,9 @@ async function canExecute(path: string): Promise<boolean> {
|
||||
|
||||
export async function resolveLsofCommand(): Promise<string> {
|
||||
for (const candidate of LSOF_CANDIDATES) {
|
||||
if (await canExecute(candidate)) return candidate;
|
||||
if (await canExecute(candidate)) {
|
||||
return candidate;
|
||||
}
|
||||
}
|
||||
return "lsof";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user