summaryrefslogtreecommitdiff
path: root/cmd/podman/main.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2018-07-28 02:36:12 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-01 18:22:58 +0000
commit1153486ab004ce1234305de295c753085c9b1356 (patch)
tree1f210e072e749c7d48960b99a11124d8c0e91204 /cmd/podman/main.go
parent190e0744599e972e4a00ef3a9184cd82c87b5282 (diff)
downloadpodman-1153486ab004ce1234305de295c753085c9b1356.tar.gz
podman-1153486ab004ce1234305de295c753085c9b1356.tar.bz2
podman-1153486ab004ce1234305de295c753085c9b1356.zip
Don't format to string and re-parse a DockerReference()
We already have a c/image/docker/reference.Named; no need to round-trip it through a string. This also eliminates the theoretical parsing failure, and the unchecked .(reference.Named) cast. Also add a check for DockerReference() == nil to be extra paranoid, although that should never happen. Should not change behavior (but does not add unit tests). Signed-off-by: Miloslav Trmač <mitr@redhat.com> Closes: #1176 Approved by: rhatdan
Diffstat (limited to 'cmd/podman/main.go')
0 files changed, 0 insertions, 0 deletions