Merge pull request #212 from laijs/cleanup

Simple Cleanups
This commit is contained in:
Mrunal Patel 2015-08-19 20:16:21 -07:00
commit 90e6d3763e
1 changed files with 1 additions and 3 deletions

View File

@ -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++ {