diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-18 22:32:56 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-23 12:44:38 +0000 |
commit | 014b3dcc356c165638aa57669f0a550ad5b1e2e7 (patch) | |
tree | 35403b1ce87667a9e567516173cdddb5ed4f48a8 /libpod/image/parts.go | |
parent | e8bc9141343714cd0266daafbcb6eaf121aaab3b (diff) | |
download | podman-014b3dcc356c165638aa57669f0a550ad5b1e2e7.tar.gz podman-014b3dcc356c165638aa57669f0a550ad5b1e2e7.tar.bz2 podman-014b3dcc356c165638aa57669f0a550ad5b1e2e7.zip |
Inline getTags into its only user
This also eliminates a duplicate call to reference.Parse() and
removes an impossible erorr path.
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1112
Approved by: rhatdan
Diffstat (limited to 'libpod/image/parts.go')
-rw-r--r-- | libpod/image/parts.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libpod/image/parts.go b/libpod/image/parts.go index 07a119c28..bfc708ad7 100644 --- a/libpod/image/parts.go +++ b/libpod/image/parts.go @@ -28,10 +28,7 @@ func decompose(input string) (imageParts, error) { if err != nil { return parts, err } - ntag, isTagged, err := getTags(input) - if err != nil { - return parts, err - } + ntag, isTagged := imgRef.(reference.NamedTagged) if !isTagged { tag = "latest" if strings.Contains(input, "@sha256:") { |