mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 22:09:57 +00:00
chore: Enable no-unnecessary-template-expression lint rule.
This commit is contained in:
@@ -355,7 +355,7 @@ export async function uninstallLaunchAgent({
|
||||
}
|
||||
|
||||
function isLaunchctlNotLoaded(res: { stdout: string; stderr: string; code: number }): boolean {
|
||||
const detail = `${res.stderr || res.stdout}`.toLowerCase();
|
||||
const detail = (res.stderr || res.stdout).toLowerCase();
|
||||
return (
|
||||
detail.includes("no such process") ||
|
||||
detail.includes("could not find service") ||
|
||||
|
||||
@@ -327,7 +327,7 @@ export async function uninstallScheduledTask({
|
||||
}
|
||||
|
||||
function isTaskNotRunning(res: { stdout: string; stderr: string; code: number }): boolean {
|
||||
const detail = `${res.stderr || res.stdout}`.toLowerCase();
|
||||
const detail = (res.stderr || res.stdout).toLowerCase();
|
||||
return detail.includes("not running");
|
||||
}
|
||||
|
||||
|
||||
@@ -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