Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 01c814c

Browse files
Adds log line for previously ignored GetProperty err value. (#770)
* Adds log line for previously ignored GetProperty err value. * Adds continue as there is no point in matching a filter to a property that doesn't exist * Update cmd/nuke.go Co-authored-by: Sven Walter <[email protected]> Co-authored-by: Sven Walter <[email protected]>
1 parent 83a8061 commit 01c814c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/nuke.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ func (n *Nuke) Filter(item *Item) error {
217217

218218
for _, filter := range itemFilters {
219219
prop, err := item.GetProperty(filter.Property)
220-
220+
if err != nil {
221+
logrus.Warnf(err.Error())
222+
continue
223+
}
221224
match, err := filter.Match(prop)
222225
if err != nil {
223226
return err

0 commit comments

Comments
 (0)