Skip to content

Commit

Permalink
JSLint: bug fix
Browse files Browse the repository at this point in the history
The `$name` passed to `Config::getExecutablePath()` appears to be incorrect which would result in a duplicate `jslint jslint` command.
  • Loading branch information
jrfnl committed Feb 13, 2021
1 parent 2da6904 commit e9a62e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Standards/Squiz/Sniffs/Debug/JSLintSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function register()
*/
public function process(File $phpcsFile, $stackPtr)
{
$rhinoPath = Config::getExecutablePath('jslint');
$rhinoPath = Config::getExecutablePath('rhino');
$jslintPath = Config::getExecutablePath('jslint');
if ($rhinoPath === null || $jslintPath === null) {
return;
Expand Down

0 comments on commit e9a62e5

Please sign in to comment.