FeatureSupportIntentionActionsFactory: add the missing branch else

This commit is contained in:
Dmitry Gridin
2019-07-12 15:47:34 +03:00
parent 28215186ca
commit b1d1a4b2e1
@@ -60,7 +60,7 @@ abstract class AbstractChangeFeatureSupportLevelFix(
Errors.EXPERIMENTAL_FEATURE_WARNING -> {
if (Errors.EXPERIMENTAL_FEATURE_WARNING.cast(diagnostic).a.first != feature) return emptyList()
if (!allowWarningAndErrorMode) listOf(LanguageFeature.State.ENABLED)
listOf(LanguageFeature.State.ENABLED, LanguageFeature.State.ENABLED_WITH_ERROR)
else listOf(LanguageFeature.State.ENABLED, LanguageFeature.State.ENABLED_WITH_ERROR)
}
else -> return emptyList()
}