3
0

Make DAL sensitivity level removal graceful

It does not error out if it does not exist like with other
resources.
This makes it more consistent and easier to work with in tests.
This commit is contained in:
Tomaž Jerman
2022-07-27 15:24:08 +02:00
parent cbc92dcc63
commit db4bdbe4ba

View File

@@ -189,7 +189,7 @@ func (svc *service) RemoveSensitivityLevel(levelIDs ...uint64) (err error) {
log := log.With(zap.Uint64("ID", l.ID))
if !nx.includes(l.ID) {
log.Debug("sensitivity level not found")
return errSensitivityLevelRemoveNotFound(l.ID)
continue
}
}