Skip to content

Commit

Permalink
chore: Enables gofmt linting (#39)
Browse files Browse the repository at this point in the history
* chore: Enables gofmt linting

* Uses single line for TODO comment
  • Loading branch information
gruyaume authored Jan 3, 2024
1 parent d633c39 commit c3bdd16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ linters-settings:

linters:
enable:
# - gofmt
- gofmt
- govet
# - errcheck
# - staticcheck
Expand Down
3 changes: 1 addition & 2 deletions producer/network_slice_information_document.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ func parseQueryParameter(query url.Values) (plugin.NsselectionQueryParameter, er
}

// Check if the NF service consumer is authorized
// TODO: Check if the NF service consumer is legal with local configuration, or possibly after querying NRF through
// `nf-id` e.g. Whether the V-NSSF is authorized
// TODO: Check if the NF service consumer is legal with local configuration, or possibly after querying NRF through `nf-id` e.g. Whether the V-NSSF is authorized
func checkNfServiceConsumer(nfType models.NfType) error {
if nfType != models.NfType_AMF && nfType != models.NfType_NSSF {
return fmt.Errorf("`nf-type`:'%s' is not authorized to retrieve the slice selection information", string(nfType))
Expand Down

0 comments on commit c3bdd16

Please sign in to comment.