(files []interface{})
| 391 | } |
| 392 | |
| 393 | func closeFiles(files []interface{}) { |
| 394 | for _, f := range files { |
| 395 | if fi, ok := f.(*os.File); ok { |
| 396 | fi.Close() |
| 397 | } else if fd, ok := f.(uintptr); ok { |
| 398 | _ = syscall.Close(int(fd)) |
| 399 | } |
| 400 | } |
| 401 | } |
no outgoing calls
no test coverage detected