File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
app/code/Magento/MediaStorage/App Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -238,12 +238,10 @@ private function createLocalCopy(): void
238
238
*/
239
239
private function checkMediaDirectoryChanged (): bool
240
240
{
241
- $ isDirectoryChanged = false ;
242
- if ($ this ->mediaDirectoryPath && $ this ->directoryMedia ->getAbsolutePath ()) {
243
- $ isDirectoryChanged = rtrim ($ this ->mediaDirectoryPath , '/ ' )
244
- !== rtrim ($ this ->directoryMedia ->getAbsolutePath (), '/ ' );
245
- }
246
- return $ isDirectoryChanged ;
241
+ $ mediaDirectoryPath = $ this ->mediaDirectoryPath ? rtrim ($ this ->mediaDirectoryPath , '/ ' ) : '' ;
242
+ $ directoryMediaAbsolutePath = $ this ->directoryMedia ->getAbsolutePath ();
243
+ $ directoryMediaAbsolutePath = $ directoryMediaAbsolutePath ? rtrim ($ directoryMediaAbsolutePath , '/ ' ) : '' ;
244
+ return $ mediaDirectoryPath !== $ directoryMediaAbsolutePath ;
247
245
}
248
246
249
247
/**
You can’t perform that action at this time.
0 commit comments