From e48363d7772ee81b0de6f07070ca5427e63f1958 Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Thu, 13 Aug 2015 09:37:44 +0800 Subject: [PATCH] simplify a variable declaration Signed-off-by: Lai Jiangshan --- libcontainer/process_linux.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libcontainer/process_linux.go b/libcontainer/process_linux.go index 70717e51..0fe06e8a 100644 --- a/libcontainer/process_linux.go +++ b/libcontainer/process_linux.go @@ -284,9 +284,7 @@ func (p *initProcess) setExternalDescriptors(newFds []string) { } func getPipeFds(pid int) ([]string, error) { - var fds []string - - fds = make([]string, 3) + fds := make([]string, 3) dirPath := filepath.Join("/proc", strconv.Itoa(pid), "/fd") for i := 0; i < 3; i++ {