mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #9318 from practicalswift/redundant-types-in-casts
[gardening] Remove redundant repetition of type names (DRY): RepeatedTypeName foo = dyn_cast<RepeatedTypeName>(bar)
This commit is contained in:
@@ -970,7 +970,7 @@ static bool dumpAPI(ModuleDecl *Mod, StringRef OutDir) {
|
||||
}
|
||||
|
||||
for (auto *FU : Mod->getFiles()) {
|
||||
if (SourceFile *SF = dyn_cast<SourceFile>(FU))
|
||||
if (auto *SF = dyn_cast<SourceFile>(FU))
|
||||
if (dumpFile(SF))
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user