fix golint issues in core/errorx (#480)

This commit is contained in:
Kevin Wan
2021-02-19 10:08:38 +08:00
committed by GitHub
parent 2446d8a668
commit 7472d1e70b
2 changed files with 6 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package errorx
// Chain runs funs one by one until an error occurred.
func Chain(fns ...func() error) error {
for _, fn := range fns {
if err := fn(); err != nil {