Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Dec 11, 2024
1 parent a753515 commit 836468d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,12 @@ impl CachedPath {
// Symlink is relative `../../foo.js`, use the path directory
// to resolve this symlink.
return dir.normalize_with(&link, cache).canocalize_impl(cache);
} else {
debug_assert!(
true,
"Failed to get path parent for {:?}.",
path.path()
)
}
debug_assert!(
false,
"Failed to get path parent for {:?}.",
path.path()

Check warning on line 268 in src/cache.rs

View check run for this annotation

Codecov / codecov/patch

src/cache.rs#L264-L268

Added lines #L264 - L268 were not covered by tests
);
}

Ok(path)
Expand Down

0 comments on commit 836468d

Please sign in to comment.