Skip to content

Commit 317f4b5

Browse files
committed
small refactor to get the pipeline to run again
1 parent 89b5e88 commit 317f4b5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

database/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -985,10 +985,7 @@ impl BenchmarkRequest {
985985

986986
pub fn parent_sha(&self) -> Option<&str> {
987987
match &self.commit_type {
988-
BenchmarkRequestType::Try { parent_sha, .. } => match parent_sha {
989-
Some(parent_sha) => Some(parent_sha),
990-
_ => None,
991-
},
988+
BenchmarkRequestType::Try { parent_sha, .. } => parent_sha.as_deref(),
992989
BenchmarkRequestType::Master { parent_sha, .. } => Some(parent_sha),
993990
BenchmarkRequestType::Release { tag: _ } => None,
994991
}

0 commit comments

Comments
 (0)