mirror of
https://github.com/containers/buildah.git
synced 2025-07-30 04:23:09 +03:00
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:
committed by
Atomic Bot
parent
e6262e3714
commit
be0c8d263b
@ -155,8 +155,8 @@ func (b *Builder) Commit(ctx context.Context, dest types.ImageReference, options
|
||||
if err != nil {
|
||||
return imgID, nil, "", errors.Wrapf(err, "error computing layer digests and building metadata for container %q", b.ContainerID)
|
||||
}
|
||||
var maybeCachedSrc types.ImageReference = src
|
||||
var maybeCachedDest types.ImageReference = dest
|
||||
var maybeCachedSrc = types.ImageReference(src)
|
||||
var maybeCachedDest = types.ImageReference(dest)
|
||||
if options.BlobDirectory != "" {
|
||||
compress := types.PreserveOriginal
|
||||
if options.Compression != archive.Uncompressed {
|
||||
@ -259,7 +259,7 @@ func Push(ctx context.Context, image string, dest types.ImageReference, options
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
var maybeCachedSrc types.ImageReference = src
|
||||
var maybeCachedSrc = types.ImageReference(src)
|
||||
if options.BlobDirectory != "" {
|
||||
compress := types.PreserveOriginal
|
||||
if options.Compression != archive.Uncompressed {
|
||||
|
Reference in New Issue
Block a user