File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
lib/internal/Magento/Framework/Code Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -192,8 +192,7 @@ private function getCacheStatus()
192
192
$ envPath = $ this ->getEnvPath ();
193
193
}
194
194
195
- if ($ this ->write ->isExist ($ this ->write ->getRelativePath ($ envPath ) &&
196
- $ this ->write ->isReadable ($ this ->write ->getRelativePath ($ envPath )))) {
195
+ if ($ this ->write ->isReadable ($ this ->write ->getRelativePath ($ envPath ))) {
197
196
$ envData = include $ envPath ;
198
197
if (isset ($ envData ['cache_types ' ])) {
199
198
$ cacheStatus = $ envData ['cache_types ' ];
@@ -260,8 +259,7 @@ private function restoreCacheStatus($cacheStatus)
260
259
return ;
261
260
}
262
261
$ envPath = $ this ->getEnvPath ();
263
- if ($ this ->write ->isExist ($ this ->write ->getRelativePath ($ envPath ) &&
264
- $ this ->write ->isReadable ($ this ->write ->getRelativePath ($ envPath )))) {
262
+ if ($ this ->write ->isReadable ($ this ->write ->getRelativePath ($ envPath ))) {
265
263
$ envData = include $ envPath ;
266
264
foreach ($ cacheStatus as $ cacheType => $ state ) {
267
265
if (isset ($ envData ['cache_types ' ][$ cacheType ])) {
You can’t perform that action at this time.
0 commit comments