Merge pull request #15413 from nextcloud/cache-update-extra-param

remove extra param in cache update call
This commit is contained in:
Morris Jobke 2019-05-07 17:58:25 +02:00 committed by GitHub
commit 20a3650a3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,7 +232,7 @@ class Cache implements ICache {
*/ */
public function put($file, array $data) { public function put($file, array $data) {
if (($id = $this->getId($file)) > -1) { if (($id = $this->getId($file)) > -1) {
$this->update($id, $data, $file); $this->update($id, $data);
return $id; return $id;
} else { } else {
return $this->insert($file, $data); return $this->insert($file, $data);
@ -943,4 +943,4 @@ class Cache implements ICache {
return trim(\OC_Util::normalizeUnicode($path), '/'); return trim(\OC_Util::normalizeUnicode($path), '/');
} }
} }