From 862935002c70d6e6fc0b0df97f469d54b4b01e0a Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Wed, 17 May 2023 19:33:22 -0400 Subject: [PATCH] Support older swift versions --- OctoKit/PullRequest.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OctoKit/PullRequest.swift b/OctoKit/PullRequest.swift index 2465a2e..e53a758 100644 --- a/OctoKit/PullRequest.swift +++ b/OctoKit/PullRequest.swift @@ -407,16 +407,16 @@ enum PullRequestRouter: JSONPostRouter { "head": head, "base": base ] - if let headRepo { + if let headRepo = headRepo { parameters["head_repo"] = headRepo } - if let body { + if let body = body { parameters["body"] = body } - if let mantainerCanModify { + if let mantainerCanModify = mantainerCanModify { parameters["maintainer_can_modify"] = mantainerCanModify } - if let draft { + if let draft = draft { parameters["draft"] = draft } return parameters