Skip to content

Commit b98f713

Browse files
committed
Remove unlock parameter from usages
1 parent 177a911 commit b98f713

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Google/Cache/File.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ public function get($key, $expiration = false)
7373
if ($this->acquireReadLock($storageFile)) {
7474
if (filesize($storageFile) > 0) {
7575
$data = fread($this->fh, filesize($storageFile));
76-
$data = unserialize($data);
76+
unserialize($data);
7777
} else {
7878
$this->log(
7979
'debug',
8080
'Cache file was empty',
8181
array('file' => $storageFile)
8282
);
8383
}
84-
$this->unlock($storageFile);
84+
$this->unlock();
8585
}
8686

8787
$this->log(
@@ -100,8 +100,8 @@ public function set($key, $value)
100100
// We serialize the whole request object, since we don't only want the
101101
// responseContent but also the postBody used, headers, size, etc.
102102
$data = serialize($value);
103-
$result = fwrite($this->fh, $data);
104-
$this->unlock($storageFile);
103+
fwrite($this->fh, $data);
104+
$this->unlock();
105105

106106
$this->log(
107107
'debug',

0 commit comments

Comments
 (0)