Skip to content

Commit

Permalink
Fix empty-list assert bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovdm committed Oct 15, 2018
1 parent c6a8b96 commit af40b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class Locale {
&& language.length != 4)),
assert(script == null || script.length == 4),
assert(region == null || (region.length >= 2 && region.length <= 3)),
assert(variants == null || variants[0].length >= 4),
assert(variants == null || variants.length == 0 || variants[0].length >= 4),
_languageCode = language,
scriptCode = script,
_countryCode = region,
Expand Down

0 comments on commit af40b72

Please sign in to comment.