aboutsummaryrefslogtreecommitdiff
path: root/import/src
diff options
context:
space:
mode:
Diffstat (limited to 'import/src')
-rw-r--r--import/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs
index 7baa796..a00a192 100644
--- a/import/src/lib.rs
+++ b/import/src/lib.rs
@@ -177,9 +177,9 @@ pub fn generate_node_paths(db: &DataAcid) -> anyhow::Result<()> {
fn compare_index_path(x: &[usize], y: &[usize]) -> Ordering {
if x.is_empty() {
- Ordering::Less
- } else if y.is_empty() {
Ordering::Greater
+ } else if y.is_empty() {
+ Ordering::Less
} else {
match x[0].cmp(&y[0]) {
o @ (Ordering::Less | Ordering::Greater) => o,