Skip to content

Commit 67d30b3

Browse files
committed
Simpler way of returning bool & update comment
1 parent 671829b commit 67d30b3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

database/src/pool/postgres.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,13 +1942,9 @@ where
19421942
)
19431943
.await
19441944
.context("Failed to mark benchmark_request as completed")?;
1945-
// The affected id is returned by the query thus we can use the row's
1945+
// The affected tag is returned by the query thus we can use the row's
19461946
// presence to determine if the request was marked as completed
1947-
if row.is_some() {
1948-
Ok(true)
1949-
} else {
1950-
Ok(false)
1951-
}
1947+
Ok(row.is_some())
19521948
}
19531949

19541950
async fn mark_benchmark_job_as_completed(

0 commit comments

Comments
 (0)