Skip to content

Commit c58d94f

Browse files
Merge pull request #8234 from practicalswift/use-isa-instead-of-dyn_cast-if-the-result-is-not-needed
[gardening] Use isa<T> instead of dyn_cast<T> if the result is not needed
2 parents 7e657e5 + 479fa0f commit c58d94f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/SourceKit/lib/SwiftLang/SwiftDocSupport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class AnnotatingPrinter : public StreamPrinter {
161161

162162
bool shouldContinuePost(const Decl *D, Optional<BracketOptions> Bracket) {
163163
assert(Bracket.hasValue());
164-
if (!Bracket.getValue().shouldCloseNominal(D) && dyn_cast<NominalTypeDecl>(D))
164+
if (!Bracket.getValue().shouldCloseNominal(D) && isa<NominalTypeDecl>(D))
165165
return false;
166166
if (!Bracket.getValue().shouldCloseExtension(D) &&
167167
isa<ExtensionDecl>(D))

0 commit comments

Comments
 (0)