From aea999914f021557cf9d207a84ca4e65871adb45 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 17 May 2014 23:46:15 +0200 Subject: [PATCH] Much easier (but not reliable) test. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/classes/main/stacker/file/class_BaseFileStack.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/inc/classes/main/stacker/file/class_BaseFileStack.php b/inc/classes/main/stacker/file/class_BaseFileStack.php index 70bd7006..21315929 100644 --- a/inc/classes/main/stacker/file/class_BaseFileStack.php +++ b/inc/classes/main/stacker/file/class_BaseFileStack.php @@ -155,9 +155,6 @@ class BaseFileStack extends BaseStacker { * @return $isInitialized Whether the file's size is zero */ private function isFileInitialized () { - // Default is not initialized - $isInitialized = FALSE; - // Get it from iterator which holds the pointer instance. If FALSE is returned $fileSize = $this->getIteratorInstance()->size(); @@ -168,10 +165,7 @@ class BaseFileStack extends BaseStacker { assert(is_int($fileSize)); // Is more than 0 returned? - if ($fileSize > 0) { - // So is the header written? - $isInitialized = $this->getIteratorInstance()->isHeaderInitialized(); - } // END - if + $isInitialized = ($fileSize > 0); // Return result return $isInitialized; -- 2.39.5