mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-22 02:08:39 +00:00
fix(macos): clean swiftformat pass and sendable warning
This commit is contained in:
@@ -122,7 +122,7 @@ actor MacNodeBrowserProxy {
|
||||
}
|
||||
}
|
||||
let profile = params.profile?.trimmingCharacters(in: .whitespacesAndNewlines) ?? ""
|
||||
if !profile.isEmpty && !queryItems.contains(where: { $0.name == "profile" }) {
|
||||
if !profile.isEmpty, !queryItems.contains(where: { $0.name == "profile" }) {
|
||||
queryItems.append(URLQueryItem(name: "profile", value: profile))
|
||||
}
|
||||
if !queryItems.isEmpty {
|
||||
@@ -172,7 +172,7 @@ actor MacNodeBrowserProxy {
|
||||
}
|
||||
if let text = String(data: data, encoding: .utf8)?
|
||||
.trimmingCharacters(in: .whitespacesAndNewlines),
|
||||
!text.isEmpty
|
||||
!text.isEmpty
|
||||
{
|
||||
return text
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user