Use finally
parent
48fd7a6462
commit
a4c93f1b74
|
@ -59,8 +59,7 @@ class FileSystemCache implements Cache
|
|||
mkdir($this->cacheDir);
|
||||
}
|
||||
file_put_contents($file, serialize($value));
|
||||
return Promise\resolve(null);
|
||||
} catch (\Exception $e) {
|
||||
} finally {
|
||||
return Promise\resolve(null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue