golint: make golint happy
should omit type ... from declaration of var ...; it will be inferred from the right-hand side Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Closes: #1426 Approved by: nalind
This commit is contained in:
parent
e6262e3714
commit
be0c8d263b
|
@ -155,8 +155,8 @@ func (b *Builder) Commit(ctx context.Context, dest types.ImageReference, options
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return imgID, nil, "", errors.Wrapf(err, "error computing layer digests and building metadata for container %q", b.ContainerID)
|
return imgID, nil, "", errors.Wrapf(err, "error computing layer digests and building metadata for container %q", b.ContainerID)
|
||||||
}
|
}
|
||||||
var maybeCachedSrc types.ImageReference = src
|
var maybeCachedSrc = types.ImageReference(src)
|
||||||
var maybeCachedDest types.ImageReference = dest
|
var maybeCachedDest = types.ImageReference(dest)
|
||||||
if options.BlobDirectory != "" {
|
if options.BlobDirectory != "" {
|
||||||
compress := types.PreserveOriginal
|
compress := types.PreserveOriginal
|
||||||
if options.Compression != archive.Uncompressed {
|
if options.Compression != archive.Uncompressed {
|
||||||
|
@ -259,7 +259,7 @@ func Push(ctx context.Context, image string, dest types.ImageReference, options
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, "", err
|
return nil, "", err
|
||||||
}
|
}
|
||||||
var maybeCachedSrc types.ImageReference = src
|
var maybeCachedSrc = types.ImageReference(src)
|
||||||
if options.BlobDirectory != "" {
|
if options.BlobDirectory != "" {
|
||||||
compress := types.PreserveOriginal
|
compress := types.PreserveOriginal
|
||||||
if options.Compression != archive.Uncompressed {
|
if options.Compression != archive.Uncompressed {
|
||||||
|
|
2
pull.go
2
pull.go
|
@ -237,7 +237,7 @@ func pullImage(ctx context.Context, store storage.Store, srcRef types.ImageRefer
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "error parsing image name %q", destName)
|
return nil, errors.Wrapf(err, "error parsing image name %q", destName)
|
||||||
}
|
}
|
||||||
var maybeCachedDestRef types.ImageReference = destRef
|
var maybeCachedDestRef = types.ImageReference(destRef)
|
||||||
if options.BlobDirectory != "" {
|
if options.BlobDirectory != "" {
|
||||||
cachedRef, err := blobcache.NewBlobCache(destRef, options.BlobDirectory, types.PreserveOriginal)
|
cachedRef, err := blobcache.NewBlobCache(destRef, options.BlobDirectory, types.PreserveOriginal)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue