Skip to content

Commit faac2e4

Browse files
committed
update
1 parent 63c9dab commit faac2e4

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

script/tool/lib/src/repo_package_info_check_command.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -432,13 +432,7 @@ class RepoPackageInfoCheckCommand extends PackageLoopingCommand {
432432
}
433433

434434
final String content = ciYamlFile.readAsStringSync();
435-
final YamlMap yaml;
436-
try {
437-
yaml = loadYaml(content) as YamlMap;
438-
} catch (e) {
439-
errors.add('Invalid YAML in .ci.yaml: $e');
440-
return errors;
441-
}
435+
final yaml = loadYaml(content) as YamlMap;
442436

443437
final enabledBranches = yaml['enabled_branches'] as YamlList?;
444438
final bool hasBranchPattern =
@@ -454,7 +448,7 @@ class RepoPackageInfoCheckCommand extends PackageLoopingCommand {
454448
} else if (!isBatchRelease && hasBranchPattern) {
455449
errors.add(
456450
'Unexpected release branch pattern release-$packageName-\\d+\\.\\d+\\.\\d+ '
457-
'in enabled_branches in .ci.yaml\n',
451+
'in enabled_branches in .ci.yaml',
458452
);
459453
}
460454
return errors;

0 commit comments

Comments
 (0)