mirror of
https://github.com/YGGverse/btracker-fs.git
synced 2026-03-31 09:05:28 +00:00
remove extra exist check
This commit is contained in:
parent
bf20fce978
commit
b3e5d59e68
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ impl Public {
|
||||||
p.push(&relative);
|
p.push(&relative);
|
||||||
|
|
||||||
let c = p.canonicalize().ok()?;
|
let c = p.canonicalize().ok()?;
|
||||||
if c.starts_with(&self.root) && c.exists() && c.is_file() {
|
if c.starts_with(&self.root) && c.is_file() {
|
||||||
Some(c)
|
Some(c)
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue