Skip to content

Commit

Permalink
This adds some tolerance for commented out distribute_options.yaml se…
Browse files Browse the repository at this point in the history
…ctions (#222)
  • Loading branch information
arran4 authored Aug 28, 2024
1 parent 2c9a7a0 commit 6af0df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter_distributor/lib/src/release.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Release {
if (json.containsKey('variables') && json['variables'] != null) {
variables = Map<String, String>.from(json['variables']);
}
List<ReleaseJob> jobs = (json['jobs'] as List)
List<ReleaseJob> jobs = (json['jobs'] as List? ?? [])
.map((item) => ReleaseJob.fromJson(item))
.toList();
return Release(
Expand Down

0 comments on commit 6af0df0

Please sign in to comment.