Skip to content

Commit a7f9588

Browse files
committed
remove duplicate getMode call
1 parent 291d698 commit a7f9588

File tree

1 file changed

+3
-2
lines changed
  • lib/internal/Magento/Framework/Css/PreProcessor/Adapter/Less

1 file changed

+3
-2
lines changed

lib/internal/Magento/Framework/Css/PreProcessor/Adapter/Less/Processor.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ public function processContent(File $asset)
6666
{
6767
$path = $asset->getPath();
6868
try {
69+
$mode = $this->appState->getMode();
6970
$parser = new \Less_Parser(
7071
[
7172
'relativeUrls' => false,
72-
'compress' => $this->appState->getMode() !== State::MODE_DEVELOPER,
73-
'sourceMap' => $this->appState->getMode() === State::MODE_DEVELOPER
73+
'compress' => $mode !== State::MODE_DEVELOPER,
74+
'sourceMap' => $mode === State::MODE_DEVELOPER
7475
]
7576
);
7677

0 commit comments

Comments
 (0)