We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b5e88 commit 317f4b5Copy full SHA for 317f4b5
database/src/lib.rs
@@ -985,10 +985,7 @@ impl BenchmarkRequest {
985
986
pub fn parent_sha(&self) -> Option<&str> {
987
match &self.commit_type {
988
- BenchmarkRequestType::Try { parent_sha, .. } => match parent_sha {
989
- Some(parent_sha) => Some(parent_sha),
990
- _ => None,
991
- },
+ BenchmarkRequestType::Try { parent_sha, .. } => parent_sha.as_deref(),
992
BenchmarkRequestType::Master { parent_sha, .. } => Some(parent_sha),
993
BenchmarkRequestType::Release { tag: _ } => None,
994
}
0 commit comments