diff --git a/src/AssetManager/src/AssetManager.php b/src/AssetManager/src/AssetManager.php index 4fb35d780..71b131212 100644 --- a/src/AssetManager/src/AssetManager.php +++ b/src/AssetManager/src/AssetManager.php @@ -121,10 +121,8 @@ public function getAssets(): AssetElementsContract ]; } - if($this->assetsModifiers !== []) { - foreach ($this->assetsModifiers as $assetsModifier) { - $assets = $assetsModifier($assets); - } + foreach ($this->assetsModifiers as $assetsModifier) { + $assets = $assetsModifier($assets); } return AssetElements::make($assets);