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