Skip to content

Commit

Permalink
chore: Adds gosimple lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume committed Jan 5, 2024
1 parent 2b30ac6 commit a7aa38a
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 @@ -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)
}
Expand All @@ -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) {
Expand Down

0 comments on commit a7aa38a

Please sign in to comment.