From 6758e0bc5339a413a28f4a5a9b0a4289a52f58ee Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Fri, 5 Jan 2024 15:10:41 -0500 Subject: [PATCH] chore: Adds gosimple lint check (#44) --- .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 8cc6e7a..d3735a3 100644 --- a/factory/config.go +++ b/factory/config.go @@ -123,7 +123,7 @@ func (c *Config) updateConfig(commChannel chan *protos.NetworkSliceResponse, dbU break } } - if found == false { + if !found { UdrConfig.Configuration.PlmnSupportList = append(UdrConfig.Configuration.PlmnSupportList, plmn) } } else { @@ -135,7 +135,7 @@ func (c *Config) updateConfig(commChannel chan *protos.NetworkSliceResponse, dbU logger.GrpcLog.Errorf("Error in adding sm policy info to db %v", err) } } - if minConfig == false { + if !minConfig { // first slice Created if len(UdrConfig.Configuration.PlmnSupportList) > 0 { minConfig = true