Fix some lints (#17337)

Fix some linting problems.
This commit is contained in:
Lunny Xiao authored and GitHub committed 2021-10-17 20:47:12 +01:00
1 parent 5326f4c9c5
commit 4a57c9ea17
8 files changed
+14 -15

No files matched your search

+3 -1
View File
@@ -55,7 +55,9 @@ func RestartProcess() (int, error) {
unixListener.SetUnlinkOnClose(false)
}
// Remember to close these at the end.
defer files[i].Close()
defer func(i int) {
_ = files[i].Close()
}(i)
}
// Use the original binary location. This works with symlinks such that if