     /// - Returns: Return the number of bytes read.
     override open func read(_ buffer: UnsafeMutablePointer<UInt8>, maxLength: Int) -> Int {
         let readError = -1
-        let data: Data
 
         guard let fileHandle = fileHandle else {
             return readError
         }
-        data = fileHandle.readData(ofLength: maxLength)
+        let data = fileHandle.readData(ofLength: maxLength)
         if data.count < maxLength {
             _streamStatus = .atEnd
         }

        }
        filePath = fileAtPath
        // Try to retrieve attributes of `fileAtPath`
        do {
            attributes = try FileManager.default.attributesOfItem(atPath: filePath)
        } catch {

    /// Initialize the object and the input stream meta data for file at 
    /// `fileAtPath`.
    public init?(fileAtPath: String) {
        // Does file `atFilePath` exists
        guard FileManager.default.fileExists(atPath: fileAtPath) else {
            FileInputStream.log(level: .error, "File not found: \(fileAtPath).")
