Skip to content

Commit

Permalink
chore: Adds whitespace and gosimple lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume committed Jan 5, 2024
1 parent ae5801c commit f5a5f3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ linters:
- errcheck
- staticcheck
- unused
# - gosimple
- gosimple
# - ineffassign
- typecheck
# Additional
Expand All @@ -241,7 +241,7 @@ linters:
# - gci
- misspell
# - gofumpt
# - whitespace
- whitespace
# - unconvert
- predeclared
- noctx
Expand Down
1 change: 0 additions & 1 deletion context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@ func (c *PCFContext) DisplayPcfSubscriberPolicyData(imsi string) {
logger.CtxLog.Infof(" TcId: %v", t.TcId)
logger.CtxLog.Infof(" FlowStatus: %v", t.FlowStatus)
}

}
}
}
3 changes: 1 addition & 2 deletions service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,6 @@ func (pcf *PCF) UpdatePcfSubsriberPolicyData(slice *protos.NetworkSlice) {
delete(self.PcfSubscriberPolicyData, imsi)
}
}

}
}

Expand Down Expand Up @@ -887,7 +886,7 @@ func (pcf *PCF) updateConfig(commChannel chan *protos.NetworkSliceResponse) bool
// minConfig is 'true' when one slice is configured at least.
// minConfig is 'false' when no slice configuration.
// check PlmnList for each configuration update from Roc/Simapp.
if minConfig == false {
if !minConfig {
// For each slice Plmn is the mandatory parameter, checking PlmnList length is greater than zero
// setting minConfig to true
if len(pcfContext.PlmnList) > 0 {
Expand Down

0 comments on commit f5a5f3c

Please sign in to comment.