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);
|
||||
p.push(&relative);
|
||||
|
||||
let path = p.canonicalize().ok()?;
|
||||
if path.starts_with(&self.root) && c.exists() {
|
||||
Some(path)
|
||||
let c = p.canonicalize().ok()?;
|
||||
if c.starts_with(&self.root) && c.exists() {
|
||||
Some(c)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue