Dont display empty other locations of lint errors
This commit is contained in:
@@ -117,7 +117,7 @@ final class DifferentialLintFieldSpecification
|
|||||||
'show' => $show,
|
'show' => $show,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isset($message['locations'])) {
|
if (!empty($message['locations'])) {
|
||||||
$locations = array();
|
$locations = array();
|
||||||
foreach ($message['locations'] as $location) {
|
foreach ($message['locations'] as $location) {
|
||||||
$other_line = idx($location, 'line');
|
$other_line = idx($location, 'line');
|
||||||
|
|||||||
Reference in New Issue
Block a user