@@ -82,7 +82,7 @@ class CountryService {
8282 } catch (e, s) {
8383 _log.severe ('Failed to fetch all countries.' , e, s);
8484 throw OperationFailedException (
85- 'Failed to retrieve all countries: ${ e . toString ()} ' ,
85+ 'Failed to retrieve all countries: $e ' ,
8686 );
8787 }
8888 }
@@ -120,7 +120,7 @@ class CountryService {
120120 await _headlineRepository.aggregate (pipeline: pipeline);
121121
122122 final distinctCountries = distinctCountriesJson
123- .map ((json) => Country .fromJson (json) )
123+ .map (Country .fromJson)
124124 .toList ();
125125
126126 _cachedEventCountries = distinctCountries;
@@ -130,7 +130,7 @@ class CountryService {
130130 } catch (e, s) {
131131 _log.severe ('Failed to fetch event countries via aggregation.' , e, s);
132132 throw OperationFailedException (
133- 'Failed to retrieve event countries: ${ e . toString ()} ' ,
133+ 'Failed to retrieve event countries: $e ' ,
134134 );
135135 }
136136 }
@@ -168,7 +168,7 @@ class CountryService {
168168 await _sourceRepository.aggregate (pipeline: pipeline);
169169
170170 final distinctCountries = distinctCountriesJson
171- .map ((json) => Country .fromJson (json) )
171+ .map (Country .fromJson)
172172 .toList ();
173173
174174 _cachedHeadquarterCountries = distinctCountries;
@@ -178,7 +178,7 @@ class CountryService {
178178 } catch (e, s) {
179179 _log.severe ('Failed to fetch headquarter countries via aggregation.' , e, s);
180180 throw OperationFailedException (
181- 'Failed to retrieve headquarter countries: ${ e . toString ()} ' ,
181+ 'Failed to retrieve headquarter countries: $e ' ,
182182 );
183183 }
184184 }
0 commit comments