Skip to content

Commit beb9bcc

Browse files
Merge pull request swiftlang#7667 from practicalswift/remove-unused-vars
[gardening] Remove unused variables
2 parents c080be7 + 0c137fa commit beb9bcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IDE/SwiftSourceDocInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,13 @@ static bool hasUnhandledError(ArrayRef<ASTNode> Nodes) {
290290
if (DCS->isSyntacticallyExhaustive())
291291
return false;
292292
Throwing = true;
293-
} else if (auto TS = dyn_cast<ThrowStmt>(S)) {
293+
} else if (isa<ThrowStmt>(S)) {
294294
Throwing = true;
295295
}
296296
return !Throwing;
297297
}
298298
bool walkToExprPre(Expr *E) override {
299-
if (auto TE = dyn_cast<TryExpr>(E)) {
299+
if (isa<TryExpr>(E)) {
300300
Throwing = true;
301301
}
302302
return !Throwing;

0 commit comments

Comments
 (0)