fix var name

This commit is contained in:
yggverse 2025-09-08 23:35:00 +03:00
parent 91d37e2810
commit c2fed39c22

View file

@ -99,9 +99,9 @@ impl Public {
let mut p = PathBuf::from(&self.root); let mut p = PathBuf::from(&self.root);
p.push(&relative); p.push(&relative);
let path = p.canonicalize().ok()?; let c = p.canonicalize().ok()?;
if path.starts_with(&self.root) && c.exists() { if c.starts_with(&self.root) && c.exists() {
Some(path) Some(c)
} else { } else {
None None
} }