FIR checker: warn useless as and is
This commit is contained in:
committed by
TeamCityServer
parent
19d939c36e
commit
e2dc21da90
+1
-1
@@ -95,7 +95,7 @@ fun branchedAndNestedWithNativeOperators(x: Any?, y: Any?) {
|
||||
equalsTrue(isInt(y) && isString(y)) // y is Int, String
|
||||
)
|
||||
&&
|
||||
(1 == 2 || y is Int || isString(y))
|
||||
(1 == 2 || <!USELESS_IS_CHECK!>y is Int<!> || isString(y))
|
||||
)
|
||||
x.length
|
||||
y.length
|
||||
|
||||
Reference in New Issue
Block a user