From 5e9c913b47dce0155e05637d4e195b87d3cdf75f Mon Sep 17 00:00:00 2001 From: cangqiaoyuzhuo <850072022@qq.com> Date: Fri, 28 Feb 2025 18:53:08 +0800 Subject: [PATCH] fix: fix incorrect nil return value Signed-off-by: cangqiaoyuzhuo <850072022@qq.com> --- test/bindata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bindata.go b/test/bindata.go index 414625e3..3b90d3cb 100644 --- a/test/bindata.go +++ b/test/bindata.go @@ -35,7 +35,7 @@ func bindataRead(data []byte, name string) ([]byte, error) { return nil, fmt.Errorf("Read %q: %v", name, err) } if clErr != nil { - return nil, err + return nil, clErr } return buf.Bytes(), nil