mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 19:01:47 +03:00
style(swift): run swiftformat + swiftlint autocorrect
This commit is contained in:
@@ -159,7 +159,9 @@ final class MenuSessionsInjector: NSObject, NSMenuDelegate {
|
||||
extension MenuSessionsInjector {
|
||||
// MARK: - Injection
|
||||
|
||||
private var mainSessionKey: String { WorkActivityStore.shared.mainSessionKey }
|
||||
private var mainSessionKey: String {
|
||||
WorkActivityStore.shared.mainSessionKey
|
||||
}
|
||||
|
||||
private func inject(into menu: NSMenu) {
|
||||
self.cancelPreviewTasks()
|
||||
@@ -1175,8 +1177,7 @@ extension MenuSessionsInjector {
|
||||
|
||||
private func makeHostedView(rootView: AnyView, width: CGFloat, highlighted: Bool) -> NSView {
|
||||
if highlighted {
|
||||
let container = HighlightedMenuItemHostView(rootView: rootView, width: width)
|
||||
return container
|
||||
return HighlightedMenuItemHostView(rootView: rootView, width: width)
|
||||
}
|
||||
|
||||
let hosting = NSHostingView(rootView: rootView)
|
||||
|
||||
Reference in New Issue
Block a user