We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9813f1 commit b6b2578Copy full SHA for b6b2578
1 file changed
presenters/json_presenter.go
@@ -2,9 +2,10 @@ package presenters
2
3
import (
4
"encoding/json"
5
+ "io"
6
+
7
"github.com/pivotal-cf/om/api"
8
"github.com/pivotal-cf/om/models"
- "io"
9
)
10
11
type JSONPresenter struct {
@@ -116,10 +117,9 @@ func (j JSONPresenter) PresentLicensedProducts(products []api.ExpiringLicenseOut
116
117
ProductVersion string `json:"product_version"`
118
LicenseVersion string `json:"licensed_version"`
119
}
- var output []licenseOutput
120
+ output := []licenseOutput{}
121
var expiresAt string
122
for _, product := range products {
-
123
if product.ExpiresAt.IsZero() {
124
expiresAt = ""
125
} else {
0 commit comments