Skip to content

Commit a245d00

Browse files
committed
Swift: tiny cosmetic tweak
1 parent 9196939 commit a245d00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

swift/extractor/translators/StmtTranslator.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@ codeql::DoCatchStmt StmtTranslator::translateDoCatchStmt(const swift::DoCatchStm
133133

134134
codeql::CaseStmt StmtTranslator::translateCaseStmt(const swift::CaseStmt& stmt) {
135135
auto entry = dispatcher.createEntry(stmt);
136-
auto labels = stmt.getCaseLabelItems();
137136
entry.body = dispatcher.fetchLabel(stmt.getBody());
138-
entry.labels = dispatcher.fetchRepeatedLabels(labels);
137+
entry.labels = dispatcher.fetchRepeatedLabels(stmt.getCaseLabelItems());
139138
entry.variables = dispatcher.fetchRepeatedLabels(stmt.getCaseBodyVariablesOrEmptyArray());
140139
return entry;
141140
}

0 commit comments

Comments
 (0)