LBAC for datasources: Refactor to only use jsondata and not the datasource struct (#98294)
refactor to only use jsondata and not the datasource struct
This commit is contained in:
@@ -88,10 +88,6 @@ type TeamHTTPHeader struct {
|
||||
Value string `json:"value"`
|
||||
}
|
||||
|
||||
func (ds DataSource) TeamHTTPHeaders() (*TeamHTTPHeaders, error) {
|
||||
return GetTeamHTTPHeaders(ds.JsonData)
|
||||
}
|
||||
|
||||
func GetTeamHTTPHeaders(jsonData *simplejson.Json) (*TeamHTTPHeaders, error) {
|
||||
teamHTTPHeaders := &TeamHTTPHeaders{}
|
||||
if jsonData == nil {
|
||||
|
||||
Reference in New Issue
Block a user