diff options
author | Miloslav Trmač <mitr@redhat.com> | 2018-07-27 03:20:25 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-01 18:22:58 +0000 |
commit | 0ef38ba07971ea9921a98353789fdb5655e65c10 (patch) | |
tree | 33f5e7ce88ccdfa2cd5fbc9fccf3e6d3fcab9b52 /hack | |
parent | ecc1db39b53e0566aed7de7192db916cf44a9fcb (diff) | |
download | podman-0ef38ba07971ea9921a98353789fdb5655e65c10.tar.gz podman-0ef38ba07971ea9921a98353789fdb5655e65c10.tar.bz2 podman-0ef38ba07971ea9921a98353789fdb5655e65c10.zip |
Return early in refNamesFromImageReference instead of appending to pullNames
Almost all paths appended to pullNames exactly once; just construct a
single-element array in place and return it.
That way we can add empty lines as separators, and still come out shorter.
Should not change behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Closes: #1176
Approved by: rhatdan
Diffstat (limited to 'hack')
0 files changed, 0 insertions, 0 deletions