Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pyohannes committed Apr 10, 2024
1 parent 6d759a0 commit e40a91b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crates/weaver_resolver/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ fn resolve_attribute_references(
unresolved_group.group.attributes.extend(resolved_attr);
}

if errors.len() == 0 {
if errors.is_empty() {
break;
}

Expand Down Expand Up @@ -376,14 +376,18 @@ fn resolve_extends_references(ureg: &mut UnresolvedRegistry) -> Result<(), Error
} else {
errors.push(Error::UnresolvedExtendsRef {
group_id: unresolved_group.group.id.clone(),
extends_ref: unresolved_group.group.extends.as_ref().unwrap().clone(),
extends_ref: unresolved_group
.group
.extends
.clone()
.unwrap_or("".to_owned()),
provenance: unresolved_group.provenance.clone(),
});
}
}
}

if errors.len() == 0 {
if errors.is_empty() {
break;
}
// If we still have unresolved `extends` but we did not resolve any
Expand Down

0 comments on commit e40a91b

Please sign in to comment.