Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit 52d10c3

Browse files
committed
Fix deleteTable
1 parent 01c0580 commit 52d10c3

File tree

1 file changed

+5
-5
lines changed
  • src/VectorNetworkProject/TheMix/provider

1 file changed

+5
-5
lines changed

src/VectorNetworkProject/TheMix/provider/JSON.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111

1212
use pocketmine\utils\Config;
13+
use pocketmine\utils\MainLogger;
1314
use VectorNetworkProject\TheMix\lib\database\Provider;
1415

1516
class JSON extends Provider
@@ -45,6 +46,7 @@ public function createTable(array $table = []): void
4546
@mkdir($this->path, 0755, true);
4647
$config = new Config($this->path . $this->file, Config::JSON, $table);
4748
$config->save();
49+
MainLogger::getLogger()->debug("[PROVIDER] Create ".$this->file);
4850
}
4951

5052
/**
@@ -58,13 +60,11 @@ public function hasTable(): bool
5860
}
5961

6062
/**
61-
* @return bool
63+
* @return void
6264
*/
63-
public function deleteTable(): bool
65+
public function deleteTable(): void
6466
{
65-
return unlink($this->path . $this->file)
66-
? true
67-
: false;
67+
unlink($this->path . $this->file);
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)