Skip to content

Commit

Permalink
platform api: list update when non-nil
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Vallejo <jakeev@amazon.com>
  • Loading branch information
jahkeup committed Aug 20, 2020
1 parent 2a5c4a4 commit 71b3c11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/platform/api/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ type listAvailableResponse struct {
}

func (lar *listAvailableResponse) Updates() []platform.Update {
if lar.chosenUpdate == nil {
return nil
}

return []platform.Update{lar.chosenUpdate}
}

Expand Down

0 comments on commit 71b3c11

Please sign in to comment.