Skip to content

Commit 528b52f

Browse files
Use better functionality for ContainsSemicolon
1 parent 04c7b8c commit 528b52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeFormatCore/src/Format/Analyzer/SemicolonAnalyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ bool SemicolonAnalyzer::EndsWithSemicolon(LuaSyntaxNode n, const LuaSyntaxTree &
113113
}
114114

115115
bool SemicolonAnalyzer::ContainsSemicolon(LuaSyntaxNode n, const LuaSyntaxTree &t) {
116-
return n.GetChildTokens(';', t).size() > 0;
116+
return n.GetChildToken(';', t).IsToken(t);
117117
}
118118

119119
LuaSyntaxNode SemicolonAnalyzer::GetLastNonCommentToken(LuaSyntaxNode n, const LuaSyntaxTree &t) {

0 commit comments

Comments
 (0)