LevelDB: Remove redundant folder creation in generate()

This is pointless because the call below - which is _also_ recursively creating directories - will create this directory anyway.
This commit is contained in:
Dylan K. Taylor 2017-12-31 17:46:07 +00:00
parent 256bdf2581
commit 5132ab6cd9

View File

@ -163,10 +163,6 @@ class LevelDB extends BaseLevelProvider{
public static function generate(string $path, string $name, int $seed, string $generator, array $options = []){
self::checkForLevelDBExtension();
if(!file_exists($path)){
mkdir($path, 0777, true);
}
if(!file_exists($path . "/db")){
mkdir($path . "/db", 0777, true);
}