Skip to content

Commit 0c137fa

Browse files
[gardening] Remove unused variables
1 parent 96f92a9 commit 0c137fa

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)