| Index: pkg/intl/lib/intl.dart
|
| diff --git a/pkg/intl/lib/intl.dart b/pkg/intl/lib/intl.dart
|
| index ba517d3e320c1d3680766d3d863e959eec19ccf5..f5ae96f396cbf9af289f493b0755aed7a26e8d23 100644
|
| --- a/pkg/intl/lib/intl.dart
|
| +++ b/pkg/intl/lib/intl.dart
|
| @@ -121,11 +121,7 @@ class Intl {
|
| * preferences).
|
| */
|
| Intl([String aLocale]) {
|
| - if (aLocale != null) {
|
| - _locale = aLocale;
|
| - } else {
|
| - _locale = getCurrentLocale();
|
| - }
|
| + _locale = aLocale != null ? aLocale : getCurrentLocale();
|
| }
|
|
|
| /**
|
| @@ -177,9 +173,7 @@ class Intl {
|
| * Return true if the locale exists, or if it is null. The null case
|
| * is interpreted to mean that we use the default locale.
|
| */
|
| - static bool _localeExists(localeName) {
|
| - return DateFormat.localeExists(localeName);
|
| - }
|
| + static bool _localeExists(localeName) => DateFormat.localeExists(localeName);
|
|
|
| /**
|
| * Given [newLocale] return a locale that we have data for that is similar
|
|
|