Enable lint unnecessary_statements. Codebase is compliant. (#20099)

* Enable lint unnecessary_statements. Codebase is compliant.

* Fix mega_gallery generated code to not generate unecessary statements

* Fix lint in mega gallery changes

* Enable unnecessary_statements for users as well as repo.
This commit is contained in:
Michael R Fairhurst
2018-08-06 16:31:57 -07:00
committed by Devon Carew
parent b81e361192
commit e77b186abd
3 changed files with 3 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ linter:
- unnecessary_null_in_if_null_operators
- unnecessary_overrides
- unnecessary_parenthesis
# - unnecessary_statements # not yet tested
- unnecessary_statements
- unnecessary_this
- unrelated_type_equality_checks
- use_rethrow_when_possible