Commit Graph

4 Commits

Author SHA1 Message Date
Dmitry Gridin 1c4fb9b00b ConstantConditionIfInspection.replaceWithBranch shouldn't remove subjectVariable with side effects
Relates to #KT-30975
2019-05-29 15:40:10 +07:00
Dmitry Gridin e2d5e9a184 Only when keyword should be highlighted in WhenWithOnlyElseInspection
#KT-31673 Fixed
2019-05-29 15:40:10 +07:00
Toshiaki Kameyama e955dcfc14 WhenWithOnlyElse: don't remove when subject variable if needed
#KT-30975 Fixed
2019-05-29 15:40:10 +07:00
Kirill Rakhman 9ac1a0140c Add inspection for when with only else (#1206)
Fixes #KT-12523
2017-08-03 15:30:28 +02:00