Skip to content

Commit

Permalink
fix: remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
yccodr authored Jan 16, 2024
1 parent cd88124 commit 08b413d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/sbi/consumer/nf_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ func SendDeregisterNFInstance() (*models.ProblemDetails, error) {
configuration.SetBasePath(nssfSelf.NrfUri)
client := Nnrf_NFManagement.NewAPIClient(configuration)

ctx, _, err = nssf_context.GetSelf().GetTokenCtx("nnrf-nfm", "NRF")
if err != nil {
return nil, errors.Errorf("SendDeregisterNFInstance error: %+v", err)
}

var res *http.Response

res, err = client.NFInstanceIDDocumentApi.DeregisterNFInstance(ctx, nssfSelf.NfId)
Expand Down

0 comments on commit 08b413d

Please sign in to comment.