The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8049
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === * Removed unneeded for-loop in lxc/copy.go Signed-off-by: Tim Rots <tim.r...@protonmail.ch>
From 4d4fb034f61025b41845e191073ada05bf5ac856 Mon Sep 17 00:00:00 2001 From: Tim Rots <tim.r...@protonmail.ch> Date: Sun, 18 Oct 2020 00:16:43 +0200 Subject: [PATCH] lxc/copy.go: Remove unneeded for-loop in c.Run() * Removed unneeded forloop in lxc/copy.go Signed-off-by: Tim Rots <tim.r...@protonmail.ch> --- lxc/image.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lxc/image.go b/lxc/image.go index 424173691d..1d1900174f 100644 --- a/lxc/image.go +++ b/lxc/image.go @@ -254,9 +254,7 @@ func (c *cmdImageCopy) Run(cmd *cobra.Command, args []string) error { if c.flagCopyAliases { // Also add the original aliases - for _, alias := range imgInfo.Aliases { - aliases = append(aliases, alias) - } + aliases = append(aliases, imgInfo.Aliases...) } err = ensureImageAliases(destinationServer, aliases, fp)
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel