                 if byte != 0 || paddingBytes % 4 != 3 {
                     throw XZError.wrongPadding
                 } else {
-                    return true
+                    return
                 }
             }
             paddingBytes += 1
         }
         pointerData.index -= 1
-        return false
     }
 
 }

    }

    /// Returns `true` if end of archive is reached, `false` otherwise.
    private static func processPadding(_ pointerData: DataWithPointer) throws -> Bool {
        guard !pointerData.isAtTheEnd else { return true }

        var paddingBytes = 0
        while true {

            guard !streamResult.checkError
                else { throw XZError.wrongCheck(result) }

            try processPadding(pointerData)
        }

        return result
