Skip to content

Commit

Permalink
Support older swift versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2 committed May 17, 2023
1 parent aa49ee1 commit 8629350
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OctoKit/PullRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8629350

Please sign in to comment.