From 426f698cac614c448f3fee98fc0126a439d523ac Mon Sep 17 00:00:00 2001 From: winebarrel Date: Mon, 25 Nov 2024 23:33:03 +0900 Subject: [PATCH] chore: Fix var name --- Pulse/PullRequestAPI.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pulse/PullRequestAPI.swift b/Pulse/PullRequestAPI.swift index da227bc..9efc420 100644 --- a/Pulse/PullRequestAPI.swift +++ b/Pulse/PullRequestAPI.swift @@ -134,8 +134,8 @@ struct PullRequestAPI { continuation.resume(returning: pulls) case .failure(let err): if let err = err as? Apollo.ResponseCodeInterceptor.ResponseCodeError, - case .invalidResponseCode(let respOpt, _) = err, - let resp = respOpt + case .invalidResponseCode(let respOrNil, _) = err, + let resp = respOrNil { continuation.resume(throwing: GitHubError.respNotOK(resp)) } else {