Introduce "Simplify when" intention where one branch is always true
So #KT-20492 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
26ba2ab3db
commit
df86ff7115
+1
@@ -0,0 +1 @@
|
||||
val foo = "foo"
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
val foo = when {
|
||||
true -> "foo"
|
||||
false -> "bar"
|
||||
else -> "baz"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention simplifies a when expression that has branch conditions which are true or false
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user