Skip to content
This repository was archived by the owner on May 31, 2020. It is now read-only.

Commit a660fc9

Browse files
committed
Return error
Signed-off-by: Lehner Florian <[email protected]>
1 parent 635f19b commit a660fc9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

matf.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,10 @@ func Open(file string) (*Matf, error) {
320320
mat := new(Matf)
321321
mat.file = f
322322

323-
readHeader(mat, f)
323+
err = readHeader(mat, f)
324+
if err != nil {
325+
return nil, err
326+
}
324327

325328
return mat, nil
326329
}

0 commit comments

Comments
 (0)