From a7aa38a9e42ac443b935ef7e80dffdd7dfec7dd1 Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Fri, 5 Jan 2024 11:18:41 -0500 Subject: [PATCH] chore: Adds gosimple lint check --- .golangci.yml | 2 +- factory/config.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {