From 18a4577a0721e797f3d0efea38658e46f5b984fd Mon Sep 17 00:00:00 2001 From: Nathan Gieseker Date: Fri, 28 Feb 2020 21:34:20 -0800 Subject: [PATCH] typo fixes --- cni/errors.go | 1 - common/core/network.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cni/errors.go b/cni/errors.go index 263e8f8a..2303bb1e 100644 --- a/cni/errors.go +++ b/cni/errors.go @@ -4,7 +4,6 @@ package cni import ( - "reflect" "github.com/sirupsen/logrus" "github.com/Microsoft/hcsshim/hcn" cniTypes "github.com/containernetworking/cni/pkg/types" diff --git a/common/core/network.go b/common/core/network.go index 712b8aa2..42a8db02 100644 --- a/common/core/network.go +++ b/common/core/network.go @@ -157,7 +157,7 @@ func (plugin *netPlugin) Add(args *cniSkel.CmdArgs) (resultError error) { if cniConfig.Ipam.Type != "" { resultError = allocateIpam(networkInfo, epInfo, cniConfig, cniConfig.OptionalFlags.ForceBridgeGateway) if resultError != nil { - // ResultErroror was logged by allocateIpam. + // ResultError was logged by allocateIpam. return } defer func() { @@ -178,7 +178,7 @@ func (plugin *netPlugin) Add(args *cniSkel.CmdArgs) (resultError error) { epInfo, resultError = plugin.nm.CreateEndpoint(nwConfig.ID, epInfo, args.Netns) if resultError != nil { - logrus.Errorf("[cni-net] Failed to create endpoint, resultErroror : %v.", resultError) + logrus.Errorf("[cni-net] Failed to create endpoint, resultError : %v.", resultError) return }