Skip to content

Commit

Permalink
refactor: rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-tekuri committed May 19, 2024
1 parent 7a8090f commit 83b2705
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions objcompiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,23 +502,23 @@ func (c *objCompiler) objVal(pname string) map[string]any {
if !ok {
return nil
}
m, ok := v.(map[string]any)
obj, ok := v.(map[string]any)
if !ok {
return nil
}
return m
return obj
}

func (c *objCompiler) arrVal(pname string) []any {
v, ok := c.obj[pname]
if !ok {
return nil
}
m, ok := v.([]any)
arr, ok := v.([]any)
if !ok {
return nil
}
return m
return arr
}

// --
Expand Down

0 comments on commit 83b2705

Please sign in to comment.