Skip to content

Commit 12a2e09

Browse files
authored
Merge pull request #3776 from fredden/jshint-not-available-test-failure
Fix case when jshint is not available
2 parents d148feb + 1d87180 commit 12a2e09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Standards/Generic/Sniffs/Debug/JSHintSniff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function process(File $phpcsFile, $stackPtr)
5252
{
5353
$rhinoPath = Config::getExecutablePath('rhino');
5454
$jshintPath = Config::getExecutablePath('jshint');
55-
if ($rhinoPath === null && $jshintPath === null) {
55+
if ($jshintPath === null) {
5656
return;
5757
}
5858

src/Standards/Generic/Tests/Debug/JSHintUnitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function shouldSkipTest()
2525
{
2626
$rhinoPath = Config::getExecutablePath('rhino');
2727
$jshintPath = Config::getExecutablePath('jshint');
28-
if ($rhinoPath === null && $jshintPath === null) {
28+
if ($jshintPath === null) {
2929
return true;
3030
}
3131

0 commit comments

Comments
 (0)