From e264738f275c1220c0e12a63e69c18d63d0b3285 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Fri, 26 Aug 2016 14:11:00 -0700 Subject: [PATCH] osprepare: Remove redundant reslice of packages slice In a previous out of tree configuration this was required, however this workaround seems to have been toolchain specific so is now removed for hygiene. Signed-off-by: Ikey Doherty --- osprepare/distro.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osprepare/distro.go b/osprepare/distro.go index 60b8bee2b..984b87a71 100644 --- a/osprepare/distro.go +++ b/osprepare/distro.go @@ -212,7 +212,7 @@ func (d *clearLinuxDistro) getID() string { // Correctly split and format the command, using sudo if appropriate, as a // common mechanism for the various package install functions. func sudoFormatCommand(command string, packages []string) bool { - toInstall := strings.Join(packages[0:], " ") + toInstall := strings.Join(packages, " ") var executable string var args string