unix: simplify error handling in *listxattr on FreeBSD
The var e error declaration is shadowed inside the for loop, so the outer e always stays nil. Also, there is no need to reset the inner e in case of EPERM, as it is reset by ExattrList* on the next iteration anyhow. Change-Id: Ib395e34b5a390a5d37bee334c44f6f87d3add2a0 Reviewed-on: https://go-review.googlesource.com/85295 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Showing
Please
register
or
sign in
to comment