Skip to content

Commit

Permalink
Fixing go fmt issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Venkata Krishna Rao Gorrepati committed Feb 18, 2025
1 parent 4c80b81 commit cca0927
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sonic_data_client/mixed_db_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ func (c *MixedDbClient) getDbtablePath(path *gnmipb.Path, value *gnmipb.TypedVal
var tblPath tablePath

fullPath, _, err := c.gnmiFullPath(c.prefix, path)
//TODO: For multi asic case, analyse the support of namespace returned from gnmiFullPath,
// for all the services involved.
//TODO: For multi asic case, analyse the support of namespace returned from gnmiFullPath,
// for all the services involved.

if err != nil {
return nil, err
Expand Down Expand Up @@ -1150,13 +1150,13 @@ func (c *MixedDbClient) ConvertToJsonPatch(prefix *gnmipb.Path, path *gnmipb.Pat
elems := fullPath.GetElem()
(*output)["op"] = operation
jsonPath := "/"

/* Add namespace as prefix only in case of multi asic */
if namespace != "" && namespace != "localhost" {
jsonPath += namespace
jsonPath += `/`
}
if namespace != "" && namespace != "localhost" {
jsonPath += namespace
jsonPath += `/`
}

if elems != nil {
/* Iterate through elements. */
for _, elem := range elems {
Expand Down Expand Up @@ -1459,7 +1459,7 @@ func (c *MixedDbClient) SetConfigDB(delete []*gnmipb.Path, replace []*gnmipb.Upd
deleteLen := len(delete)
replaceLen := len(replace)
updateLen := len(update)
if (deleteLen == 1 && replaceLen == 0 && updateLen == 1) {
if deleteLen == 1 && replaceLen == 0 && updateLen == 1 {
deletePath, _, err := c.gnmiFullPath(c.prefix, delete[0])
if err != nil {
return err
Expand Down Expand Up @@ -1499,8 +1499,8 @@ func (c *MixedDbClient) GetCheckPoint() ([]*spb.Value, error) {
log.V(2).Infof("Getting #%v", c.jClient.jsonData)
for _, path := range c.paths {
fullPath, _, err := c.gnmiFullPath(c.prefix, path)
//TODO: For multi asic, analyse the support of namespace returned from gnmiFullPath,
// for all the services involved.
//TODO: For multi asic, analyse the support of namespace returned from gnmiFullPath,
// for all the services involved.
if err != nil {
return nil, err
}
Expand Down

0 comments on commit cca0927

Please sign in to comment.