Suggest to replace 'substring' calls by take/drop/dropLast calls when possible
#KT-10196 Fixed
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
s.<spot>dropLast(5)</spot>
|
||||
+1
@@ -0,0 +1 @@
|
||||
s.<spot>substring(0, s.length - 5)</spot>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention replaces 'substring' call with 'dropLast' call.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user