]> git.mxchange.org Git - core.git/commitdiff
Much easier (but not reliable) test.
authorRoland Haeder <roland@mxchange.org>
Sat, 17 May 2014 21:46:15 +0000 (23:46 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 17 May 2014 21:46:15 +0000 (23:46 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/stacker/file/class_BaseFileStack.php

index 70bd7006f5c1c345e273f59790c256470af3a0f8..21315929272717a46af5bb5dae3c5a56e0b1feb8 100644 (file)
@@ -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;