mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-22 13:08:37 +00:00
chore(format): swiftformat host env and exec approvals (#31115)
This commit is contained in:
@@ -686,7 +686,8 @@ private final class ExecApprovalsSocketServer: @unchecked Sendable {
|
||||
do {
|
||||
try ExecApprovalsSocketPathGuard.removeExistingSocket(at: self.socketPath)
|
||||
} catch {
|
||||
self.logger.warning("exec approvals socket cleanup failed: \(error.localizedDescription, privacy: .public)")
|
||||
self.logger
|
||||
.warning("exec approvals socket cleanup failed: \(error.localizedDescription, privacy: .public)")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -726,7 +727,8 @@ private final class ExecApprovalsSocketServer: @unchecked Sendable {
|
||||
try ExecApprovalsSocketPathGuard.hardenParentDirectory(for: self.socketPath)
|
||||
try ExecApprovalsSocketPathGuard.removeExistingSocket(at: self.socketPath)
|
||||
} catch {
|
||||
self.logger.error("exec approvals socket path hardening failed: \(error.localizedDescription, privacy: .public)")
|
||||
self.logger
|
||||
.error("exec approvals socket path hardening failed: \(error.localizedDescription, privacy: .public)")
|
||||
close(fd)
|
||||
return -1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user