Fix code not reachable

This commit is contained in:
Laurent Destailleur 2022-12-28 05:00:36 +01:00
parent 90f93a60d6
commit a272b620f5
2 changed files with 3 additions and 4 deletions

View File

@ -703,8 +703,8 @@ class Lessc
// has default value
$value = $a[2];
} else {
$this->throwError("Failed to assign arg ".$a[1]);
$value = null; // :(
$this->throwError("Failed to assign arg ".$a[1]); // This end function by throwing an exception
}
$value = $this->reduce($value);
@ -1118,8 +1118,7 @@ class Lessc
if (isset($items[0])) {
return $this->lib_e($items[0]);
}
$this->throwError("unrecognised input");
return null;
$this->throwError("unrecognised input"); // This end function by throwing an exception
case "string":
$arg[1] = "";
return $arg;

View File

@ -521,7 +521,7 @@ class Skill extends CommonObject
*/
public function delete(User $user, $notrigger = false)
{
return $this->deleteCommon($user, $notrigger);;
return $this->deleteCommon($user, $notrigger);
}
/**