Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Adds gosimple lint check
Browse files Browse the repository at this point in the history
gruyaume committed Jan 5, 2024

Verified

This commit was signed with the committer’s verified signature.
battery-staple Rohen Giralt
1 parent ab7fdc8 commit 20f7588
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
@@ -223,7 +223,7 @@ linters:
- errcheck
- staticcheck
- unused
# - gosimple
- gosimple
- ineffassign
- typecheck
# Additional
4 changes: 2 additions & 2 deletions factory/config.go
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 20f7588

Please sign in to comment.