Skip to content

Commit

Permalink
Remove superfluous comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Sep 18, 2024
1 parent 0f405df commit 545f7cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SimplePie.php
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,7 @@ protected function fetch_data(&$cache)
// Update cache metadata
$this->data['headers'] = array_map(function (array $values): string {
return implode(',', $values);
}, $file->get_headers()); // FreshRSS
}, $file->get_headers());
$this->data['cache_expiration_time'] = \SimplePie\HTTP\Utils::negociate_cache_expiration_time($this->data['headers'] ?? [], $this->cache_duration, $this->cache_duration_min, $this->cache_duration_max);
}
if (!$cache->set_data($cacheKey, $this->data, $this->cache_duration)) { // FreshRSS
Expand All @@ -2039,7 +2039,7 @@ protected function fetch_data(&$cache)
return implode(',', $values);
}, $file->get_headers());
$this->data['cache_expiration_time'] = \SimplePie\HTTP\Utils::negociate_cache_expiration_time($this->data['headers'] ?? [], $this->cache_duration, $this->cache_duration_min, $this->cache_duration_max);
if (!$cache->set_data($cacheKey, $this->data, $this->cache_duration)) { // FreshRSS
if (!$cache->set_data($cacheKey, $this->data, $this->cache_duration)) {
trigger_error("$this->cache_location is not writable. Make sure you've set the correct relative or absolute path, and that the location is server-writable.", E_USER_WARNING);
}

Expand Down

0 comments on commit 545f7cd

Please sign in to comment.