mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 00:42:40 +01:00
Load more context for lint only if the files actually exist.
This commit is contained in:
parent
d67a081243
commit
c00da5bf4f
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ abstract class ArcanistLintEngine {
|
|||
$result->setFilePathOnDisk($disk_path);
|
||||
if (isset($this->fileData[$path])) {
|
||||
$result->setData($this->fileData[$path]);
|
||||
} else if ($disk_path) {
|
||||
} else if ($disk_path && Filesystem::pathExists($disk_path)) {
|
||||
// TODO: this may cause us to, e.g., load a large binary when we only
|
||||
// raised an error about its filename. We could refine this by looking
|
||||
// through the lint messages and doing this load only if any of them
|
||||
|
|
Loading…
Reference in a new issue