mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
chore(ext/node): fix variable name (#17948)
This commit is contained in:
parent
c6c747873f
commit
6bbb4c3af6
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue