Skip to content

Commit

Permalink
Remove extraneous output, refs #49
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jan 3, 2018
1 parent fe95ce0 commit 9b35565
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bin/jsonlint
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,13 @@ if (isset($_SERVER['argc']) && $_SERVER['argc'] > 1) {
if (!empty($files)) {
// file linting
$exitCode = 0;
echo 'Checking ' . count($files) . " file" . (count($files) > 1 ? 's' : '') . PHP_EOL;
foreach ($files as $file) {

$result = lintFile($file, $quiet);
if ($result === false) {
$exitCode = 1;
}
}
exit($exitCode);

} else {
//stdin linting
if ($contents = file_get_contents('php://stdin')) {
Expand Down

0 comments on commit 9b35565

Please sign in to comment.