Skip to content

Commit

Permalink
Remove useless conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Feb 28, 2020
1 parent 9ead5f9 commit 0a01a43
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/ShapeFile.php
Expand Up @@ -517,11 +517,8 @@ private function openFile($toWrite, $extension, $name)
private function openSHPFile($toWrite = false)
{
$this->shpFile = $this->openFile($toWrite, '.shp', 'Shape');
if (! $this->shpFile) {
return false;
}

return true;
return (bool) $this->shpFile;
}

/**
Expand All @@ -545,11 +542,8 @@ private function closeSHPFile()
private function openSHXFile($toWrite = false)
{
$this->shxFile = $this->openFile($toWrite, '.shx', 'Index');
if (! $this->shxFile) {
return false;
}

return true;
return (bool) $this->shxFile;
}

/**
Expand Down

0 comments on commit 0a01a43

Please sign in to comment.