Commit 2d60fac3 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'sh-fix-gocloud-race' into 'master'

Eliminate unnecessary code in GoCloud test stubs

See merge request gitlab-org/gitlab-workhorse!590
parents 620c1b95 6643490a
---
title: Eliminate unnecessary code in GoCloud test stubs
merge_request: 590
author:
type: other
...@@ -13,12 +13,10 @@ import ( ...@@ -13,12 +13,10 @@ import (
) )
type dirOpener struct { type dirOpener struct {
u *url.URL // last url passed to OpenBucketURL
tmpDir string tmpDir string
} }
func (o *dirOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*blob.Bucket, error) { func (o *dirOpener) OpenBucketURL(ctx context.Context, u *url.URL) (*blob.Bucket, error) {
o.u = u
return fileblob.OpenBucket(o.tmpDir, nil) return fileblob.OpenBucket(o.tmpDir, nil)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment