We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't see what os.Open and srcF.Close are for, are these really necessary?
os.Open
srcF.Close
func (bkd *BkdTree) extractTi(dstF *os.File, idx int) (err error) { if bkd.trees[idx].meta.NumPoints <= 0 { return } srcF, err := os.Open(bkd.TiPath(idx)) if err != nil { err = errors.Wrap(err, "") return } defer srcF.Close() //depth-first extracting from the root node meta := &bkd.trees[idx].meta err = bkd.extractNode(dstF, bkd.trees[idx].data, meta, int(meta.RootOff)) return }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I don't see what
os.Open
andsrcF.Close
are for, are these really necessary?The text was updated successfully, but these errors were encountered: