Skip to content

Commit

Permalink
returning invalid layer error instead of panicking
Browse files Browse the repository at this point in the history
  • Loading branch information
perryqh committed Apr 1, 2024
1 parent 77863c4 commit dfea776
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/packs/checker/architecture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ impl CheckerInterface for Checker {
(Some(referencing_layer), Some(defining_layer)) => {
if self
.layers
.can_depend_on(referencing_layer, defining_layer)
.unwrap()
.can_depend_on(referencing_layer, defining_layer)?
{
return Ok(None);
}
Expand Down

0 comments on commit dfea776

Please sign in to comment.