mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 00:13:28 +00:00
fix: resolve lint errors (unused vars, imports, formatting)
- Prefix unused test variables with underscore - Remove unused piSpec import and idleMs class member - Fix import ordering and code formatting
This commit is contained in:
committed by
Peter Steinberger
parent
518af0ef24
commit
4a35bcec21
@@ -4,7 +4,8 @@ const DEFAULT_LAUNCHD_LABEL = "com.steipete.warelay";
|
||||
|
||||
export function triggerWarelayRestart(): void {
|
||||
const label = process.env.WARELAY_LAUNCHD_LABEL || DEFAULT_LAUNCHD_LABEL;
|
||||
const uid = typeof process.getuid === "function" ? process.getuid() : undefined;
|
||||
const uid =
|
||||
typeof process.getuid === "function" ? process.getuid() : undefined;
|
||||
const target = uid !== undefined ? `gui/${uid}/${label}` : label;
|
||||
const child = spawn("launchctl", ["kickstart", "-k", target], {
|
||||
detached: true,
|
||||
|
||||
Reference in New Issue
Block a user