Merge pull request #9787 from feihujiang/acceptErrorLikeGoPath

Make a change to visitor to allow it to accept an error, like Go's pa…
This commit is contained in:
Zach Loafman
2015-08-21 15:17:58 -07:00
12 changed files with 128 additions and 101 deletions

View File

@@ -66,7 +66,7 @@ func (r *Selector) Visit(fn VisitorFunc) error {
Object: list,
ResourceVersion: resourceVersion,
}
return fn(info)
return fn(info, nil)
}
func (r *Selector) Watch(resourceVersion string) (watch.Interface, error) {