Fix edgecase where empty sets would return
This commit is contained in:
@@ -116,6 +116,11 @@ func (ctrl *DataPrivacy) SensitiveDataList(ctx context.Context, r *request.DataP
|
||||
Values: a.Values,
|
||||
})
|
||||
}
|
||||
|
||||
if len(nsMod.Records) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
outSet.Set = append(outSet.Set, nsMod)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user