Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vmrajas committed Jan 5, 2021
1 parent 172c3c6 commit dff6c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ func (sg *SubGraph) fillVars(mp map[string]varValue) error {
return err
}

if sg.DestUIDs.Size() > 0 {
if len(sg.DestUIDs.GetUids()) > 0 {
// Don't add sg.DestUIDs in case its size is 0.
// This is to avoiding adding nil (empty element) to lists.
lists = append(lists, sg.DestUIDs)
Expand Down

0 comments on commit dff6c91

Please sign in to comment.