Skip to content

Commit

Permalink
Fix if statement
Browse files Browse the repository at this point in the history
Signed-off-by: Max Smythe <smythe@google.com>
  • Loading branch information
maxsmythe committed Jan 30, 2020
1 parent e98f8e5 commit 686a41a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/controller/config/config_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ func (r *ReconcileConfig) Reconcile(request reconcile.Request) (reconcile.Result
// if config is not found, we should remove cached data
if errors.IsNotFound(err) {
exists = false
} else {
// Error reading the object - requeue the request.
return reconcile.Result{}, err
}
// Error reading the object - requeue the request.
return reconcile.Result{}, err
}

if exists {
Expand Down

0 comments on commit 686a41a

Please sign in to comment.