From a55783d5332d5ef64a893eeacf086fed7f766227 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 7 Jul 2021 14:32:11 +0300 Subject: [PATCH] Straighten wrinkles in lint fixes Fix small mistakes that slipped through with lint fixes (in 1230945564179eba3645d0b216cfdf998efb1481). --- pkg/nfd-master/nfd-master.go | 2 +- source/custom/custom.go | 2 +- source/local/local.go | 2 +- source/pci/pci.go | 2 +- source/usb/usb.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/nfd-master/nfd-master.go b/pkg/nfd-master/nfd-master.go index 508450fd4..07ad7618c 100644 --- a/pkg/nfd-master/nfd-master.go +++ b/pkg/nfd-master/nfd-master.go @@ -43,7 +43,7 @@ import ( ) const ( - // LabelNs defines the Namespace for feature labels + // LabelNs defines the namespace for feature labels LabelNs = "feature.node.kubernetes.io" // AnnotationNsBase namespace for all NFD-related annotations diff --git a/source/custom/custom.go b/source/custom/custom.go index f336b49ff..6783b4b41 100644 --- a/source/custom/custom.go +++ b/source/custom/custom.go @@ -57,7 +57,7 @@ type Source struct { } // Name returns the name of the feature source -func (s Source) Name() string { return "custom" } +func (s Source) Name() string { return Name } // NewConfig method of the FeatureSource interface func (s *Source) NewConfig() source.Config { return newDefaultConfig() } diff --git a/source/local/local.go b/source/local/local.go index 38e0c147d..8b196139b 100644 --- a/source/local/local.go +++ b/source/local/local.go @@ -42,7 +42,7 @@ var ( type Source struct{} // Name returns the name of the feature source -func (s Source) Name() string { return "local" } +func (s Source) Name() string { return Name } // NewConfig method of the FeatureSource interface func (s *Source) NewConfig() source.Config { return nil } diff --git a/source/pci/pci.go b/source/pci/pci.go index fe2702e65..c78da29c9 100644 --- a/source/pci/pci.go +++ b/source/pci/pci.go @@ -47,7 +47,7 @@ type Source struct { } // Name returns the name of the feature source -func (s Source) Name() string { return "pci" } +func (s Source) Name() string { return Name } // NewConfig method of the FeatureSource interface func (s *Source) NewConfig() source.Config { return newDefaultConfig() } diff --git a/source/usb/usb.go b/source/usb/usb.go index e9566ef4c..0d386612b 100644 --- a/source/usb/usb.go +++ b/source/usb/usb.go @@ -50,7 +50,7 @@ type Source struct { } // Name returns the name of the feature source -func (s Source) Name() string { return "usb" } +func (s Source) Name() string { return Name } // NewConfig method of the FeatureSource interface func (s *Source) NewConfig() source.Config { return newDefaultConfig() }