Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
Tara Gu committed Feb 20, 2020
1 parent b4f0dff commit 8fafe73
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/reconciler/configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (c *Reconciler) getSortedCreatedRevisions(ctx context.Context, config *v1.C
})
if config.Status.LatestReadyRevisionName != "" {
lrr, err := lister.Get(config.Status.LatestReadyRevisionName)
// Record the error and continue because we still want to set the LRR to the correct revision
// Record the error and continue because we still want to set the LRR to the correct revision.
if err != nil {
logger.Errorf("Error getting latest ready revision %q: %v", config.Status.LatestReadyRevisionName, err)
} else {
Expand All @@ -170,10 +170,9 @@ func (c *Reconciler) getSortedCreatedRevisions(ctx context.Context, config *v1.C
selection.In,
generations,
)
if err != nil {
return nil, err
if err == nil {
configSelector = configSelector.Add(*inReq)
}
configSelector = configSelector.Add(*inReq)
}
}

Expand Down

0 comments on commit 8fafe73

Please sign in to comment.