1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -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 GitHub
parent c6c747873f
commit 6bbb4c3af6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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());
}
}