1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 18:22:41 +01:00

Mark finished postponed linters as okay

Test Plan: Called it on a diff with postponed linters and no messages.

Reviewers: mgummelt, epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4223
This commit is contained in:
vrana 2012-12-17 14:37:39 -08:00
parent bd70693d84
commit cd46fd4afe

View file

@ -77,8 +77,7 @@ final class ConduitAPI_differential_setdiffproperty_Method
$diff->setLintStatus(DifferentialLintStatus::LINT_WARN); $diff->setLintStatus(DifferentialLintStatus::LINT_WARN);
} else if (!empty($postponed_linters)) { } else if (!empty($postponed_linters)) {
$diff->setLintStatus(DifferentialLintStatus::LINT_POSTPONED); $diff->setLintStatus(DifferentialLintStatus::LINT_POSTPONED);
} else if ($results && } else if ($diff->getLintStatus() != DifferentialLintStatus::LINT_SKIP) {
$diff->getLintStatus() === DifferentialLintStatus::LINT_NONE) {
$diff->setLintStatus(DifferentialLintStatus::LINT_OKAY); $diff->setLintStatus(DifferentialLintStatus::LINT_OKAY);
} }
$diff->save(); $diff->save();