summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-11-24 13:15:55 +0300
committerAndrew Dolgov <[email protected]>2022-11-24 13:15:55 +0300
commite4f00908fc1696ec8129f3cb7d43f2065ca8bd7c (patch)
treeda4d35f931f6ea4f33c1dbe0c2bfbfcadc27a9fe
parentb84921dfbcbe52aed0cc1894e84eede000218f9c (diff)
remove pointless exists() check
-rw-r--r--init.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/init.php b/init.php
index c871c6d..d695b44 100644
--- a/init.php
+++ b/init.php
@@ -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)]);