Add inspection for when with only else (#1206)

Fixes #KT-12523
This commit is contained in:
Kirill Rakhman
2017-08-03 15:30:28 +02:00
committed by Dmitry Jemerov
parent 61b10ac330
commit 9ac1a0140c
13 changed files with 199 additions and 31 deletions
@@ -0,0 +1,5 @@
<html>
<body>
This inspection reports 'when' expressions with only an 'else' branch that can be simplified to the 'else' branch's expression.
</body>
</html>