Skip to content

Commit 4a218bf

Browse files
committed
Remove warnings
1 parent 5c3edc8 commit 4a218bf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Core/Sources/Service/GUI/WidgetDataSource.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ final class WidgetDataSource {
4141
@discardableResult
4242
func createChatIfNeeded(for url: URL) -> ChatService {
4343
let build = {
44-
let language = UserDefaults.shared.value(for: \.chatGPTLanguage)
4544
let service = ChatService(chatGPTService: ChatGPTService())
4645
let provider = ChatProvider(
4746
service: service,

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public final class SuggestionWidgetController: NSObject {
204204
guard let activeXcode = ActiveApplicationMonitor.activeXcode else { continue }
205205
guard fullscreenDetector.isOnActiveSpace else { continue }
206206
let app = AXUIElementCreateApplication(activeXcode.processIdentifier)
207-
if let window = app.focusedWindow {
207+
if app.focusedWindow != nil {
208208
orderFront()
209209
}
210210
}

0 commit comments

Comments
 (0)