From c3bdd162f2f25793cb14c916855cb55883759132 Mon Sep 17 00:00:00 2001 From: Guillaume Belanger Date: Wed, 3 Jan 2024 16:41:39 -0500 Subject: [PATCH] chore: Enables gofmt linting (#39) * chore: Enables gofmt linting * Uses single line for TODO comment --- .golangci.yml | 2 +- producer/network_slice_information_document.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 4cf8920..2c9cdcf 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -218,7 +218,7 @@ linters-settings: linters: enable: - # - gofmt + - gofmt - govet # - errcheck # - staticcheck diff --git a/producer/network_slice_information_document.go b/producer/network_slice_information_document.go index 7cfd0c8..7b78552 100644 --- a/producer/network_slice_information_document.go +++ b/producer/network_slice_information_document.go @@ -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))