Skip to content

Commit b32c186

Browse files
committed
Cleanup warnings
1 parent a727125 commit b32c186

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
129129
defer { presenter.markAsProcessing(false) }
130130
let fileURL = try await Environment.fetchCurrentFileURL()
131131

132-
if let service = WidgetDataSource.shared.promptToCodes[fileURL]?.promptToCodeService {
132+
if WidgetDataSource.shared.promptToCodes[fileURL]?.promptToCodeService != nil {
133133
WidgetDataSource.shared.removePromptToCode(for: fileURL)
134134
presenter.closePromptToCode(fileURL: fileURL)
135135
return

Core/Sources/SuggestionInjector/SuggestionInjector.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ public struct SuggestionInjector {
142142
let suggestionContent = completion.text
143143

144144
let existedLine = start.line < content.endIndex ? content[start.line] : nil
145-
let commonPrefix = longestCommonPrefix(of: suggestionContent, and: existedLine ?? "")
146145

147146
let firstRemovedLine = content[safe: start.line]
148147
let lastRemovedLine = content[safe: end.line]

Core/Sources/SuggestionWidget/WidgetView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ struct WidgetView: View {
3939
)
4040
.padding(2)
4141

42-
#warning("TODO: Tweak the animation")
4342
// how do I stop the repeatForever animation without removing the view?
4443
// I tried many solutions found on stackoverflow but non of them works.
4544
if viewModel.isProcessing {

0 commit comments

Comments
 (0)