enable lint avoid_bool_literals_in_conditional_expressions (#35055)

This commit is contained in:
Alexandre Ardhuin
2019-06-25 17:40:05 +02:00
committed by GitHub
parent 9a3a7490c8
commit fecf99ff1e
21 changed files with 27 additions and 25 deletions

View File

@@ -37,7 +37,7 @@ class FooMaterialLocalizationsDelegate extends LocalizationsDelegate<MaterialLoc
@override
bool isSupported(Locale locale) {
return supportedLanguage == 'allLanguages' ? true : locale.languageCode == supportedLanguage;
return supportedLanguage == 'allLanguages' || locale.languageCode == supportedLanguage;
}
@override