mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:49:50 +00:00
Give non-existent files a durability of at least Medium (#14034)
This commit is contained in:
parent
ddae741b72
commit
8574751911
1 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,9 @@ impl Files {
|
|||
Ok(metadata) if metadata.file_type().is_directory() => {
|
||||
builder.status(FileStatus::IsADirectory)
|
||||
}
|
||||
_ => builder.status(FileStatus::NotFound),
|
||||
_ => builder
|
||||
.status(FileStatus::NotFound)
|
||||
.status_durability(Durability::MEDIUM.max(durability)),
|
||||
};
|
||||
|
||||
builder.new(db)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue