mirror of
				https://github.com/opencontainers/runc.git
				synced 2025-10-31 19:13:12 +08:00 
			
		
		
		
	simplify a variable declaration
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
This commit is contained in:
		| @@ -284,9 +284,7 @@ func (p *initProcess) setExternalDescriptors(newFds []string) { | |||||||
| } | } | ||||||
|  |  | ||||||
| func getPipeFds(pid int) ([]string, error) { | 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") | 	dirPath := filepath.Join("/proc", strconv.Itoa(pid), "/fd") | ||||||
| 	for i := 0; i < 3; i++ { | 	for i := 0; i < 3; i++ { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lai Jiangshan
					Lai Jiangshan