catalog: fix vet errors (#1090)

* catalog: fix vet errors

* fix typo
This commit is contained in:
Marwan Sulaiman
2019-02-26 13:57:18 -05:00
committed by Aaron Schlesinger
parent dbe44e627a
commit 26d565d7bc
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func (s *storageImpl) Catalog(ctx context.Context, token string, pageSize int) (
return nil
}
res = append(res, paths.AllPathParams{module, version})
res = append(res, paths.AllPathParams{Module: module, Version: version})
count--
if count == 0 {
resToken = tokenFromModVer(module, version)
+1 -1
View File
@@ -81,5 +81,5 @@ func parseGcpKey(p string) (paths.AllPathParams, error) {
if m == "" || v == "" {
return paths.AllPathParams{}, errors.E(op, fmt.Errorf("invalid object key format %s", p))
}
return paths.AllPathParams{m, v}, nil
return paths.AllPathParams{Module: m, Version: v}, nil
}
+1 -1
View File
@@ -80,5 +80,5 @@ func parseMinioKey(o *minio.ObjectInfo) (paths.AllPathParams, error) {
if m == "" || v == "" {
return paths.AllPathParams{}, errors.E(op, fmt.Errorf("invalid object key format %s", o.Key))
}
return paths.AllPathParams{m, v}, nil
return paths.AllPathParams{Module: m, Version: v}, nil
}
+1 -1
View File
@@ -81,5 +81,5 @@ func parseS3Key(o *s3.Object) (paths.AllPathParams, error) {
if m == "" || v == "" {
return paths.AllPathParams{}, errors.E(op, fmt.Errorf("invalid object key format %s", *o.Key))
}
return paths.AllPathParams{m, v}, nil
return paths.AllPathParams{Module: m, Version: v}, nil
}