Make Close() method on Iterators return an error
This commit is contained in:
parent
5c9979ec8b
commit
1b6395ed0a
19 changed files with 89 additions and 33 deletions
|
|
@ -57,8 +57,8 @@ func (it *Optional) Reset() {
|
|||
it.lastCheck = false
|
||||
}
|
||||
|
||||
func (it *Optional) Close() {
|
||||
it.subIt.Close()
|
||||
func (it *Optional) Close() error {
|
||||
return it.subIt.Close()
|
||||
}
|
||||
|
||||
func (it *Optional) Tagger() *graph.Tagger {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue