mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-26 13:49:14 +08:00
Close flie
This commit is contained in:
parent
cde96fa826
commit
d494b8ed97
@ -122,6 +122,7 @@ func ReadSerializedClassifierStub(filePath string) (*ClassifierDeserializer, err
|
||||
if err != nil {
|
||||
return nil, DescribeError("Can't open file", err)
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
gzr, err := gzip.NewReader(f)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user