Skip to content

Commit

Permalink
Fix warning in macro
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanekay committed May 15, 2024
1 parent 6d99732 commit 2c25f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PapyrusPlugin/Sources/APIMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ extension FunctionDeclSyntax {
.joined(separator: ", "))]
"""

for (index, component) in pathComponents.filter { !$0.isEmpty }.enumerated() {
for (index, component) in pathComponents.filter({ !$0.isEmpty }).enumerated() {
if let parameter = pathParameter(from: component) {
buildRequest += """
if \(parameter) as Any? == nil {
Expand Down

0 comments on commit 2c25f2f

Please sign in to comment.