Skip to content

Commit 06ffe54

Browse files
Update src/bin/pr-metadata-validator.rs
Co-authored-by: Daniel Wagner-Hall <daniel@codeyourfuture.io>
1 parent 17f8dd0 commit 06ffe54

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/bin/pr-metadata-validator.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,10 @@ async fn validate_pr(
265265
)
266266
.await
267267
{
268-
Ok(Some(problem)) => return Ok(problem),
269-
Ok(None) => (),
270-
Err(e) => {
271-
let _ = anyhow!(e);
272-
}
268+
Ok(Some(problem)) => Ok(problem),
269+
Ok(None) => Ok(ValidationResult::Ok),
270+
Err(err) => Err(err),
273271
}
274-
275-
Ok(ValidationResult::Ok)
276272
}
277273

278274
// Check the changed files in a pull request match what is expected for that sprint task

0 commit comments

Comments
 (0)