Skip to content

Commit e9b88b7

Browse files
committed
Remove warnings
1 parent 0dccd99 commit e9b88b7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Pro

Submodule Pro updated from ede561a to 9f89195

Tool/Sources/GitHubCopilotService/GitHubCopilotService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ public class GitHubCopilotBaseService {
169169
Task { [weak self] in
170170
_ = try? await server.sendRequest(GitHubCopilotRequest.SetEditorInfo())
171171

172-
for await notification in NotificationCenter.default
172+
for await _ in NotificationCenter.default
173173
.notifications(named: .gitHubCopilotShouldRefreshEditorInformation)
174174
{
175175
print("Yes!")
176-
guard let self else { return }
176+
guard self != nil else { return }
177177
_ = try? await server.sendRequest(GitHubCopilotRequest.SetEditorInfo())
178178
}
179179
}

Tool/Sources/OpenAIService/ChatGPTService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public class ChatGPTService: ChatGPTServiceType {
285285
}
286286
}
287287

288-
#warning("TODO: remove this and let the concurrency system handle it")
288+
#warning("TODO: Move the cancellation up to the caller.")
289289
public func stopReceivingMessage() {
290290
runningTask?.cancel()
291291
runningTask = nil

0 commit comments

Comments
 (0)