Enable literal_only_boolean_expressions (#133186)

Blocking issue (https://github.com/dart-lang/linter/issues/453) for this lint has been resolved.
This commit is contained in:
Michael Goderbauer
2023-08-23 14:35:54 -07:00
committed by GitHub
parent 4930613999
commit 382ceb5707
5 changed files with 9 additions and 19 deletions

View File

@@ -486,7 +486,7 @@ abstract class FlutterCommand extends Command<void> {
}
ddsEnabled = !boolArg('disable-dds');
// TODO(ianh): enable the following code once google3 is migrated away from --disable-dds (and add test to flutter_command_test.dart)
if (false) { // ignore: dead_code
if (false) { // ignore: dead_code, literal_only_boolean_expressions
if (ddsEnabled) {
globals.printWarning('${globals.logger.terminal
.warningMark} The "--no-disable-dds" argument is deprecated and redundant, and should be omitted.');