Add inspection + intention to replace .let { it.foo() } with .foo() #KT-13551 Fixed

This commit is contained in:
shiraji
2016-09-05 23:59:41 +03:00
committed by Mikhail Glukhikh
parent cdf4309e04
commit e4c873dc6a
32 changed files with 452 additions and 0 deletions
@@ -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>