Skip to content

Commit

Permalink
Merge pull request #39 from jahkeup/update-api-listavailable
Browse files Browse the repository at this point in the history
platform api: list update when non-nil
  • Loading branch information
jahkeup committed Aug 20, 2020
2 parents 2a5c4a4 + 71b3c11 commit 5adfc9e
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 5adfc9e

Please sign in to comment.