Skip to content

Commit

Permalink
fix: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 18, 2023
1 parent 99908e9 commit de7e2e4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ class BadsmellAnalyser : QualityAnalyser {
val calledClassesMap = mutableMapOf<String, Boolean>()
val calledClasses = mutableListOf<String>()
for (methodCalled in this.FunctionCalls) {
if (methodCalled.NodeName == "" || !maps[methodCalled.buildClassFullName()]!! || this.getClassFullName() == methodCalled.buildClassFullName()) {
val hasExistFunction = maps[methodCalled.buildClassFullName()] ?: continue

if (methodCalled.NodeName == "" || hasExistFunction || this.getClassFullName() == methodCalled.buildClassFullName()) {
continue
}
calledClassesMap[methodCalled.buildClassFullName()] = true
Expand Down

0 comments on commit de7e2e4

Please sign in to comment.