Skip to content

Commit 6a26a77

Browse files
Fix code review issues: avoid mutation and fix indentation
Co-authored-by: richardthe3rd <573334+richardthe3rd@users.noreply.github.com>
1 parent edbbbf4 commit 6a26a77

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/services/festival_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class FestivalsResponse {
2121
factory FestivalsResponse.fromJson(Map<String, dynamic> json, String baseUrl) {
2222
final festivalsList = (json['festivals'] as List<dynamic>)
2323
.map((f) {
24-
final festivalJson = f as Map<String, dynamic>;
24+
final festivalJson = Map<String, dynamic>.from(f as Map<String, dynamic>);
2525
// Resolve relative URLs to absolute URLs
2626
if (festivalJson['data_base_url'] != null) {
2727
final dataBaseUrl = festivalJson['data_base_url'] as String;

test/brewery_screen_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void main() {
6060
final festivalsResponse = FestivalsResponse(
6161
festivals: [testFestival],
6262
defaultFestivalId: 'cbf2025',
63-
baseUrl: 'https://example.com',
63+
baseUrl: 'https://example.com',
6464
version: '1.0.0',
6565
);
6666
when(mockFestivalService.fetchFestivals())

0 commit comments

Comments
 (0)