Skip to content

Commit d3c8b4b

Browse files
authored
Update pkg/kubernetes/apply.go
1 parent 445216a commit d3c8b4b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/kubernetes/apply.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ func (k *Kubernetes) uids(state manifest.List) (map[string]bool, error) {
9494
live, err := k.ctl.GetByState(state, client.GetByStateOpts{
9595
IgnoreNotFound: true,
9696
})
97-
if err != nil {
98-
if _, ok := err.(client.ErrorNothingReturned); ok {
99-
// return empty map of uids when kubectl returns nothing
100-
return uids, nil
101-
}
97+
if _, ok := err.(client.ErrorNothingReturned); ok {
98+
// return empty map of uids when kubectl returns nothing
99+
return uids, nil
100+
} else if err != nil {
102101
return nil, err
103102
}
103+
}
104104

105105
for _, m := range live {
106106
uids[m.Metadata().UID()] = true

0 commit comments

Comments
 (0)