Fix bugs in stores not yielding the correct things

This commit is contained in:
Niklas Keller
2018-01-11 10:32:17 +01:00
parent 0ae207fce3
commit e3d7723da3
3 changed files with 19 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ class CertificateStore {
$chain = \array_slice($certificates, 1);
$path = $this->root . '/' . $commonName;
if (!yield File\isdir($path) && !yield File\mkdir($path, 0644, true) && !yield File\isdir($path)) {
if (!(yield File\isdir($path)) && !(yield File\mkdir($path, 0644, true)) && !(yield File\isdir($path))) {
throw new FilesystemException("Couldn't create certificate directory: '{$path}'");
}