Skip to content

Commit 842af9d

Browse files
Remove unnecessary check for null-analyzer
1 parent c0aceab commit 842af9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CodeFormatCore/src/Format/FormatState.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ void FormatState::DfsForeach(std::vector<LuaSyntaxNode> &startNodes,
163163
}
164164
}
165165
for (auto &analyzer: _analyzers) {
166-
if(analyzer)
167-
analyzer->Query(*this, traverse.Node, t, resolve);
166+
analyzer->Query(*this, traverse.Node, t, resolve);
168167
}
169168
auto children = traverse.Node.GetChildren(t);
170169
// 不采用 <range>

0 commit comments

Comments
 (0)