aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/gcs
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-08-12 15:31:47 +0200
committerTaras Madan <tarasmadan@google.com>2024-08-12 15:10:06 +0000
commit6ba02fb7c5dd2e8985ade7303b33c940d4d1d6a9 (patch)
treeb0b2839d83a064d3359122501ab448c0ad4ac0c2 /pkg/gcs
parent842184b3e1b0aec492d32f6e846268739826cb10 (diff)
pkg/asset: simplify gcs code
Diffstat (limited to 'pkg/gcs')
-rw-r--r--pkg/gcs/gcs.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gcs/gcs.go b/pkg/gcs/gcs.go
index 2b7a87ab9..e46350d2c 100644
--- a/pkg/gcs/gcs.go
+++ b/pkg/gcs/gcs.go
@@ -177,8 +177,7 @@ type Object struct {
}
func (client *Client) ListObjects(bucket string) ([]*Object, error) {
- ctx := context.Background()
- it := client.client.Bucket(bucket).Objects(ctx, nil)
+ it := client.client.Bucket(bucket).Objects(client.ctx, nil)
ret := []*Object{}
for {
objAttrs, err := it.Next()