Skip to content

Commit

Permalink
style: http response body change from nil to gin.H
Browse files Browse the repository at this point in the history
  • Loading branch information
HanHongChen committed Oct 29, 2024
1 parent f0c0837 commit 093cfc0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/sbi/api_policyauthorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (s *Server) getPolicyAuthorizationRoutes() []Route {

// PcscfRestoration - Indicates P-CSCF restoration and does not create an Individual Application Session Context
func (s *Server) HTTPPcscfRestoration(c *gin.Context) {
c.JSON(http.StatusNotImplemented, nil)
c.JSON(http.StatusNotImplemented, gin.H{})
}

// api_application_session
Expand Down
8 changes: 4 additions & 4 deletions internal/sbi/api_uepolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ func (s *Server) getUePolicyRoutes() []Route {
}

func (s *Server) HTTPDeleteIndividualUEPolicyAssociation(c *gin.Context) {
c.JSON(http.StatusNotImplemented, nil)
c.JSON(http.StatusNotImplemented, gin.H{})
}

func (s *Server) HTTPReadIndividualUEPolicyAssociation(c *gin.Context) {
c.JSON(http.StatusNotImplemented, nil)
c.JSON(http.StatusNotImplemented, gin.H{})
}

func (s *Server) HTTPReportObservedEventTriggersForIndividualUEPolicyAssociation(c *gin.Context) {
c.JSON(http.StatusNotImplemented, nil)
c.JSON(http.StatusNotImplemented, gin.H{})
}

func (s *Server) HTTPCreateIndividualUEPolicyAssociation(c *gin.Context) {
c.JSON(http.StatusNotImplemented, nil)
c.JSON(http.StatusNotImplemented, gin.H{})
}
2 changes: 1 addition & 1 deletion internal/sbi/processor/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (p *Processor) HandlePolicyDataChangeNotify(

PolicyDataChangeNotifyProcedure(supi, policyDataChangeNotification)

c.JSON(http.StatusNotImplemented, nil)
c.JSON(http.StatusNotImplemented, gin.H{})
}

// TODO: handle Policy Data Change Notify
Expand Down

0 comments on commit 093cfc0

Please sign in to comment.