Skip to content

Commit

Permalink
get rid of the double function
Browse files Browse the repository at this point in the history
  • Loading branch information
codyfinegan committed Apr 18, 2024
1 parent 1d2929f commit c37a414
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -5869,28 +5869,13 @@ public function findImport($url, $currentDir = null)
if ($pos !== false) {
$transforms = substr($url, 0, $pos);
$path = substr($url, $pos + 1);
$result = $this->doFindImport($path, $currentDir);
$result = $this->findImport($path, $currentDir);
if ($result === null) {
throw $this->error("`$path` file not found for @import");
}
return "$transforms!$result";
}

return $this->doFindImport($url, $currentDir);
}

/**
* The original find import command
*
* @internal
*
* @param string $url
* @param string|null $currentDir
*
* @return string|null
*/
private function doFindImport($url, $currentDir = null)
{
// Vanilla css and external requests. These are not meant to be Sass imports.
// Callback importers are still called for BC.
if (self::isCssImport($url)) {
Expand Down

0 comments on commit c37a414

Please sign in to comment.