Add inspection + intention to replace .let { it.foo() } with .foo() #KT-13551 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
cdf4309e04
commit
e4c873dc6a
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection detects redundant '.let', when it includes only one call with lambda parameter as receiver.
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
text?.<spot>length</spot>
|
||||
@@ -0,0 +1 @@
|
||||
text?.let <spot>{ it.length }</spot>
|
||||
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention removes redundant '.let', when it includes only one call with lambda parameter as receiver.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user