Swiftify: Fix an unused variable warning.

This commit is contained in:
Allan Shortlidge
2025-10-26 12:08:59 -07:00
parent 80a292be00
commit 8cf7582083

View File

@@ -1758,7 +1758,7 @@ func parseProtocolMacroParam(
if let methodSyntax = DeclSyntax("\(raw: methodSignature)").as(FunctionDeclSyntax.self) {
name = methodSyntax.name.trimmed.text
}
for (tmp, method) in methods where method.name.trimmed.text == name {
for (_, method) in methods where method.name.trimmed.text == name {
notes.append(Note(node: Syntax(method.name), message: MacroExpansionNoteMessage("did you mean '\(method.trimmed.description)'?")))
}
throw DiagnosticError(