mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 00:18:26 +00:00
chore: Enable no-unnecessary-template-expression lint rule.
This commit is contained in:
@@ -387,7 +387,7 @@ async function isSystemctlAvailable(): Promise<boolean> {
|
||||
if (res.code === 0) {
|
||||
return true;
|
||||
}
|
||||
const detail = `${res.stderr || res.stdout}`.toLowerCase();
|
||||
const detail = (res.stderr || res.stdout).toLowerCase();
|
||||
return !detail.includes("not found");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user