Skip to content

Commit

Permalink
Reuse constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Dec 19, 2023
1 parent 8e6bfa2 commit c8b3b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SafeDITool/SafeDITool.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ struct SafeDITool: AsyncParsableCommand {
for filePath in swiftFilePaths {
taskGroup.addTask {
let swiftFile = try String(contentsOfFile: filePath)
if swiftFile.contains("Instantiable") {
if swiftFile.contains(InstantiableVisitor.macroName) {
return swiftFile
} else {
// We don't care about this file.
Expand Down

0 comments on commit c8b3b9f

Please sign in to comment.