diff options
author | Andrew Dolgov <[email protected]> | 2022-11-24 13:15:55 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-11-24 13:15:55 +0300 |
commit | e4f00908fc1696ec8129f3cb7d43f2065ca8bd7c (patch) | |
tree | da4d35f931f6ea4f33c1dbe0c2bfbfcadc27a9fe | |
parent | b84921dfbcbe52aed0cc1894e84eede000218f9c (diff) |
remove pointless exists() check
-rw-r--r-- | init.php | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -137,8 +137,7 @@ class Api_Resize_Media extends Plugin { return; } - if (!$this->cache->exists($local_filename_flag)) - $this->cache->put($local_filename_flag, ""); + $this->cache->put($local_filename_flag, ""); if (!$this->cache->exists($local_filename)) { $data = UrlHelper::fetch(["url" => $url, "max_size" => Config::get(Config::MAX_CACHE_FILE_SIZE)]); |