Skip to content

Commit 8cf7582

Browse files
committed
Swiftify: Fix an unused variable warning.
1 parent 80a292b commit 8cf7582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Macros/Sources/SwiftMacros/SwiftifyImportMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,7 @@ func parseProtocolMacroParam(
17581758
if let methodSyntax = DeclSyntax("\(raw: methodSignature)").as(FunctionDeclSyntax.self) {
17591759
name = methodSyntax.name.trimmed.text
17601760
}
1761-
for (tmp, method) in methods where method.name.trimmed.text == name {
1761+
for (_, method) in methods where method.name.trimmed.text == name {
17621762
notes.append(Note(node: Syntax(method.name), message: MacroExpansionNoteMessage("did you mean '\(method.trimmed.description)'?")))
17631763
}
17641764
throw DiagnosticError(

0 commit comments

Comments
 (0)