[License] Eliminate duplicate case in switch (flutter/engine#7269)

This changes behaviour, but we should treat diffs as binary for the
reasons outlined in the comment on the remaining diff case.
This commit is contained in:
Chris Bracken
2018-12-20 13:22:30 -08:00
committed by GitHub
parent a3bb2045a4
commit 16949aab71
3 changed files with 2 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
Signature: 589881cc85de13ab88e7d283493fe1be
Signature: a55f4ce9207b1a1dff62891b1c203f5e

View File

@@ -39,6 +39,7 @@ linter:
- implementation_imports
- library_names
- library_prefixes
- no_duplicate_case_values
- non_constant_identifier_names
- one_member_abstracts
- overridden_fields

View File

@@ -180,7 +180,6 @@ FileType identifyFile(String name, Reader reader) {
// Documentation
case '.md': return FileType.text;
case '.txt': return FileType.text;
case '.diff': return FileType.text;
case '.html': return FileType.text;
// Fonts
case '.ttf': return FileType.binary; // TrueType Font