Skip to content

Commit 00ac1a2

Browse files
committed
Update pkg/kubernetes/apply.go
1 parent 445216a commit 00ac1a2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pkg/kubernetes/apply.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ 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
}
104103

0 commit comments

Comments
 (0)