aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/car.rs
diff options
context:
space:
mode:
Diffstat (limited to 'adenosine-pds/src/car.rs')
-rw-r--r--adenosine-pds/src/car.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/adenosine-pds/src/car.rs b/adenosine-pds/src/car.rs
index 63911e5..b14d0b1 100644
--- a/adenosine-pds/src/car.rs
+++ b/adenosine-pds/src/car.rs
@@ -56,7 +56,7 @@ async fn inner_car_loader(
.await?;
// pin the header (?)
- if car_header.roots().len() >= 1 {
+ if !car_header.roots().is_empty() {
db.alias(alias.as_bytes(), Some(&car_header.roots()[0]))?;
}