Skip to content

Commit 1f5d615

Browse files
author
Juanjo Alvarez
committed
Fix problem from bad merge
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent 90f93e9 commit 1f5d615

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

npath.go

-6
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@ func visitIf(n *uast.Node) int {
110110
if len(ifElse) > 0 {
111111
npath += complexityMultOf(ifElse[0])
112112
} else {
113-
// This if is a short circuit to avoid the two roles in the switch problem
114-
if containsRole(ifElse[0], uast.If) {
115-
npath += visitIf(ifElse[0])
116-
} else {
117-
npath += complexityMultOf(ifElse[0])
118-
}
119113
npath++
120114
}
121115
npath *= complexityMultOf(ifThen[0])

0 commit comments

Comments
 (0)