From cc09b01ab2b3cc2e5d322733a502ff016a85a64c Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Mon, 19 Mar 2018 18:52:07 +0000 Subject: [PATCH] lint: Fix virtcontainers `structcheck` errors Correct `structcheck` linter issues. Signed-off-by: James O. D. Hunt --- virtcontainers/cnm.go | 1 - virtcontainers/pod.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/virtcontainers/cnm.go b/virtcontainers/cnm.go index 8af32569ac..773acf4328 100644 --- a/virtcontainers/cnm.go +++ b/virtcontainers/cnm.go @@ -22,7 +22,6 @@ import ( // cnm is a network implementation for the CNM plugin. type cnm struct { - config NetworkConfig } func cnmLogger() *logrus.Entry { diff --git a/virtcontainers/pod.go b/virtcontainers/pod.go index c5563c93e3..778c729916 100644 --- a/virtcontainers/pod.go +++ b/virtcontainers/pod.go @@ -466,8 +466,6 @@ type Pod struct { networkNS NetworkNamespace - lockFile *os.File - annotationsLock *sync.RWMutex wg *sync.WaitGroup