File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments