From 836468d1ab42e7d081882a606c7399800b7889fc Mon Sep 17 00:00:00 2001 From: Boshen Date: Wed, 11 Dec 2024 16:53:00 +0800 Subject: [PATCH] c --- src/cache.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/cache.rs b/src/cache.rs index 0b388d9e..8a2089cf 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -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() + ); } Ok(path)