From 3ee91a37a2b2357c63668397e4e2e8e12d7c3676 Mon Sep 17 00:00:00 2001 From: bdular Date: Wed, 24 Jul 2024 00:41:07 +0200 Subject: [PATCH] Linter fixes --- ocpp_v16/configuration_test.go | 1 + ocpp_v16/manager.go | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ocpp_v16/configuration_test.go b/ocpp_v16/configuration_test.go index fd655e0..440d932 100644 --- a/ocpp_v16/configuration_test.go +++ b/ocpp_v16/configuration_test.go @@ -74,6 +74,7 @@ func (s *OcppConfigTest) TestGetConfigurationValue() { // Invalid key value, err = s.config.GetConfigurationValue("Test4") s.Assert().Error(err) + s.Assert().Nil(value) } func (s *OcppConfigTest) TestGetVersion() { diff --git a/ocpp_v16/manager.go b/ocpp_v16/manager.go index 9c3575e..1531243 100644 --- a/ocpp_v16/manager.go +++ b/ocpp_v16/manager.go @@ -29,12 +29,11 @@ type ( } ManagerV16 struct { - supportedProfiles []string - ocppConfig *Config - mandatoryKeys []Key - keyValidator KeyValidator - onUpdateHandlers map[Key]OnUpdateHandler - mu sync.Mutex + ocppConfig *Config + mandatoryKeys []Key + keyValidator KeyValidator + onUpdateHandlers map[Key]OnUpdateHandler + mu sync.Mutex } )