Skip to content

Commit

Permalink
Merge pull request #3776 from fredden/jshint-not-available-test-failure
Browse files Browse the repository at this point in the history
Fix case when jshint is not available
  • Loading branch information
jrfnl authored Jul 11, 2023
2 parents d148feb + 1d87180 commit 12a2e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Standards/Generic/Sniffs/Debug/JSHintSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function process(File $phpcsFile, $stackPtr)
{
$rhinoPath = Config::getExecutablePath('rhino');
$jshintPath = Config::getExecutablePath('jshint');
if ($rhinoPath === null && $jshintPath === null) {
if ($jshintPath === null) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Debug/JSHintUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function shouldSkipTest()
{
$rhinoPath = Config::getExecutablePath('rhino');
$jshintPath = Config::getExecutablePath('jshint');
if ($rhinoPath === null && $jshintPath === null) {
if ($jshintPath === null) {
return true;
}

Expand Down

0 comments on commit 12a2e09

Please sign in to comment.