1
0
Fork 0

Fix linting errors

pull/260/head
Felix Becker 2017-01-26 01:54:04 +01:00
parent 95f60617cf
commit 48fd7a6462
1 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,9 @@ class ClientCache implements Cache
*/
public function get(string $key): Promise
{
return $this->client->xcache->get($key)->then('unserialize')->otherwise(function () {});
return $this->client->xcache->get($key)->then('unserialize')->otherwise(function () {
// Ignore
});
}
/**
@ -39,6 +41,8 @@ class ClientCache implements Cache
*/
public function set(string $key, $value): Promise
{
return $this->client->xcache->set($key, serialize($value))->otherwise(function () {});
return $this->client->xcache->set($key, serialize($value))->otherwise(function () {
// Ignore
});
}
}