1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-02 17:01:14 -05:00

chore(ext/node): fix variable name (#17948)

This commit is contained in:
Geert-Jan Zwiers 2023-02-27 21:26:02 +01:00 committed by Yoshiya Hinosawa
parent 5149d07335
commit b3b6b53df9

View file

@ -3,7 +3,7 @@
use std::path::Component;
use std::path::PathBuf;
/// Extenion to path_clean::PathClean
/// Extension to path_clean::PathClean
pub trait PathClean<T> {
fn clean(&self) -> T;
}
@ -22,8 +22,8 @@ impl PathClean<PathBuf> for PathBuf {
// skip
}
Component::ParentDir => {
let poped_component = components.pop();
if !matches!(poped_component, Some(Component::Normal(_))) {
let maybe_last_component = components.pop();
if !matches!(maybe_last_component, Some(Component::Normal(_))) {
panic!("Error normalizing: {}", path.display());
}
}