Verified Commit 3959be8d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2232051 by andypost, andyceo, tayzlor, smustgrave, moshe weitzman:...

Issue #2232051 by andypost, andyceo, tayzlor, smustgrave, moshe weitzman: Unnessessary chmod during config write

(cherry picked from commit 581f7515)
parent 51bd01d2
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -154,10 +154,7 @@ public function write($name, array $data) {
      $status = @file_put_contents($target, $encoded_data);
    }
    if ($status === FALSE) {
      throw new StorageException('Failed to write configuration file: ' . $this->getFilePath($name));
    }
    else {
      $this->getFileSystem()->chmod($target);
      throw new StorageException('Failed to write configuration file: ' . $target);
    }

    $this->fileCache->set($target, $data);