Skip to content

Commit ea20c62

Browse files
committed
fix lint errors
1 parent 6b41bfc commit ea20c62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api/certadd/insert.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ type AddRequest struct {
6060
PEM string `json:"pem"`
6161
IssuedAt *time.Time `json:"issued_at"`
6262
NotBefore *time.Time `json:"not_before"`
63-
MetadataJson types.JSONText `json:"metadata"`
64-
SansJson types.JSONText `json:"sans"`
63+
MetadataJSON types.JSONText `json:"metadata"`
64+
SansJSON types.JSONText `json:"sans"`
6565
CommonName string `json:"common_name"`
6666
}
6767

@@ -163,8 +163,8 @@ func (h *Handler) Handle(w http.ResponseWriter, r *http.Request) error {
163163
PEM: req.PEM,
164164
IssuedAt: req.IssuedAt,
165165
NotBefore: req.NotBefore,
166-
MetadataJSON: req.MetadataJson,
167-
SANsJSON: req.SansJson,
166+
MetadataJSON: req.MetadataJSON,
167+
SANsJSON: req.SansJSON,
168168
CommonName: sql.NullString{String: req.CommonName, Valid: req.CommonName != ""},
169169
}
170170

0 commit comments

Comments
 (0)