Skip to content

Commit 0fa5b4e

Browse files
committed
fix artifactory read
1 parent adb3c66 commit 0fa5b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/artifactory.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ func (s *Artifactory) AddExtension(ctx context.Context, manifest *VSIXManifest,
287287
// going to Artifactory for the VSIX when it is missing on disk (basically
288288
// using the disk as a cache).
289289
func (s *Artifactory) Open(ctx context.Context, fp string) (fs.File, error) {
290-
resp, code, err := s.read(ctx, path.Join(s.repo, fp))
291-
if err != nil {
290+
resp, code, err := s.read(ctx, fp)
291+
if code != http.StatusOK || err != nil {
292292
switch code {
293293
case http.StatusNotFound:
294294
return nil, fs.ErrNotExist

0 commit comments

Comments
 (0)