mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[gardening] Use isa<T> instead of dyn_cast<T> if the result is not needed
This commit is contained in:
@@ -161,7 +161,7 @@ public:
|
||||
|
||||
bool shouldContinuePost(const Decl *D, Optional<BracketOptions> Bracket) {
|
||||
assert(Bracket.hasValue());
|
||||
if (!Bracket.getValue().shouldCloseNominal(D) && dyn_cast<NominalTypeDecl>(D))
|
||||
if (!Bracket.getValue().shouldCloseNominal(D) && isa<NominalTypeDecl>(D))
|
||||
return false;
|
||||
if (!Bracket.getValue().shouldCloseExtension(D) &&
|
||||
isa<ExtensionDecl>(D))
|
||||
|
||||
Reference in New Issue
Block a user