From 9ccf2fbc628f537601b4b7e1cbce2c7b161baccc Mon Sep 17 00:00:00 2001 From: Matthew Nibecker Date: Mon, 22 Jul 2024 17:00:11 -0700 Subject: [PATCH] Remove unnecessary error check --- lake/api/remote.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lake/api/remote.go b/lake/api/remote.go index 57fd1be941..2693854306 100644 --- a/lake/api/remote.go +++ b/lake/api/remote.go @@ -128,10 +128,7 @@ func (r *remote) QueryWithControl(ctx context.Context, head *lakeparse.Commitish if err != nil { return nil, err } - q, err := queryio.NewQuery(res.Body), nil - if err != nil { - return nil, err - } + q := queryio.NewQuery(res.Body) return zbuf.MeterReadCloser(q), nil }