Merge pull request #883 from mmorel-35/linter-2

enable govet and unparam linters
This commit is contained in:
Casey Callendrello
2023-04-24 17:42:55 +02:00
committed by GitHub
11 changed files with 61 additions and 66 deletions

View File

@ -62,7 +62,7 @@ func startInNetNS(binPath string, netNS ns.NetNS) (*gexec.Session, error) {
return session, err
}
func StartEchoServerInNamespace(netNS ns.NetNS) (int, *gexec.Session, error) {
func StartEchoServerInNamespace(netNS ns.NetNS) (int, *gexec.Session) {
session, err := startInNetNS(echoServerBinaryPath, netNS)
Expect(err).NotTo(HaveOccurred())
@ -73,5 +73,5 @@ func StartEchoServerInNamespace(netNS ns.NetNS) (int, *gexec.Session, error) {
port, err := strconv.Atoi(portString)
Expect(err).NotTo(HaveOccurred())
return port, session, nil
return port, session
}