Skip to content

Commit 24f71d3

Browse files
committed
fix: remove unused tempdir in pnpm_quoted_hash_in_pattern_not_truncated
1 parent b1b090b commit 24f71d3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/detect.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,11 +1410,7 @@ mod tests {
14101410

14111411
#[test]
14121412
fn pnpm_quoted_hash_in_pattern_not_truncated() {
1413-
let dir = tempdir().unwrap();
1414-
// Pattern value containing # inside quotes must not be truncated.
1415-
// Using a directory name without # (filesystem-safe) but verifying the
1416-
// parser does not truncate a quoted value that has # before the closing quote.
1417-
// We encode this as a unit test on the helper directly.
1413+
// Direct unit test for strip_yaml_inline_comment: # inside quotes is not a comment.
14181414
assert_eq!(
14191415
strip_yaml_inline_comment(r#""packages/#internal" # comment"#),
14201416
r#""packages/#internal""#,

0 commit comments

Comments
 (0)