We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 386b89a commit 919203aCopy full SHA for 919203a
1 file changed
csharp/ql/src/Language Abuse/UselessUpcast.ql
@@ -149,11 +149,7 @@ class ExplicitUpcast extends ExplicitCast {
149
this.isDisambiguatingStaticCall(other, args)
150
|
151
args >= getMinimumArguments(other) and
152
- (
153
- not exists(getMaximumArguments(other))
154
- or
155
- args <= getMaximumArguments(other)
156
- )
+ not args > getMaximumArguments(other)
157
)
158
}
159
0 commit comments