Skip to content

Commit 0ce6ab5

Browse files
committed
Remove an unnecessary if.
1 parent 5462dcd commit 0ce6ab5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cpp/ql/src/utils/modelgenerator/internal/CaptureModels.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ module ModelGeneratorInput implements ModelGeneratorInputSig<Location, CppDataFl
135135
ExternalFlow::getParameterTypeWithoutTemplateArguments(functionTemplate, i, true), ","
136136
order by
137137
i
138-
)
139-
|
140-
if params = "" then result = "()" else result = "(" + params + ")"
138+
) and
139+
result = "(" + params + ")"
141140
)
142141
}
143142

0 commit comments

Comments
 (0)