Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Adds whitespace and gosimple lint checks #58

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading