mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-03 19:31:01 +01:00
Fix the ArcanistJSONLintLinter::getVersion
function.
Summary: Ref T4954. There was a typo in the original implementation. It wasn't noticed until now because the `getVersion` function isn't really used anywhere. Test Plan: Ran `arc linters` in a repository with `ArcanistJSONLintLinter` configured, noticed that the version number appeared in the output. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T4954 Differential Revision: https://secure.phabricator.com/D9160
This commit is contained in:
parent
b4b6a33d2a
commit
4181fbde12
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ final class ArcanistJSONLintLinter extends ArcanistExternalLinter {
|
|||
|
||||
$matches = array();
|
||||
if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) {
|
||||
$version = $matches['version'];
|
||||
return $matches['version'];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue