Some condition simplifications suggested by static analysis

This commit is contained in:
Dylan K. Taylor
2017-08-16 20:06:48 +01:00
parent eebc52e00b
commit b4c4005009
4 changed files with 4 additions and 18 deletions

View File

@ -599,11 +599,7 @@ class LevelDB extends BaseLevelProvider{
}
public function isChunkGenerated(int $chunkX, int $chunkZ) : bool{
if($this->chunkExists($chunkX, $chunkZ) and ($chunk = $this->getChunk($chunkX, $chunkZ, false)) !== null){
return true;
}
return false;
return $this->chunkExists($chunkX, $chunkZ) and ($chunk = $this->getChunk($chunkX, $chunkZ, false)) !== null;
}
public function isChunkPopulated(int $chunkX, int $chunkZ) : bool{