mirror of
https://github.com/YGGverse/btracker-fs.git
synced 2026-03-31 17:15:28 +00:00
fix var name
This commit is contained in:
parent
91d37e2810
commit
c2fed39c22
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue