Skip to content

Commit

Permalink
chore: Adds gosimple lint check (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume authored Jan 5, 2024
1 parent ab7fdc8 commit 6758e0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ linters:
- errcheck
- staticcheck
- unused
# - gosimple
- gosimple
- ineffassign
- typecheck
# Additional
Expand Down
4 changes: 2 additions & 2 deletions factory/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 6758e0b

Please sign in to comment.