diff --git a/.golangci.yml b/.golangci.yml index a411f09..0b27044 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -223,7 +223,7 @@ linters: - errcheck - staticcheck - unused - # - gosimple + - gosimple - ineffassign - typecheck # Additional diff --git a/factory/config.go b/factory/config.go index cd7090d..edc997d 100644 --- a/factory/config.go +++ b/factory/config.go @@ -145,7 +145,7 @@ func (c *Config) updateConfig(commChannel chan *protos.NetworkSliceResponse) boo break } } - if found == false { + if !found { NssfConfig.Configuration.SupportedPlmnList = append(NssfConfig.Configuration.SupportedPlmnList, *plmn) NssfConfig.Configuration.SupportedNssaiInPlmnList = append(NssfConfig.Configuration.SupportedNssaiInPlmnList, sNssaiInPlmns) } @@ -154,7 +154,7 @@ func (c *Config) updateConfig(commChannel chan *protos.NetworkSliceResponse) boo } } } - if minConfig == false { + if !minConfig { // first slice Created if (len(NssfConfig.Configuration.SupportedPlmnList) > 0) && (len(NssfConfig.Configuration.SupportedNssaiInPlmnList) > 0) {