From ea20c62e8f777ba0de98fdf406016c2d71a1d98e Mon Sep 17 00:00:00 2001 From: myokoyama28 Date: Tue, 23 Mar 2021 15:26:37 +0900 Subject: [PATCH] fix lint errors --- api/certadd/insert.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/certadd/insert.go b/api/certadd/insert.go index 9189c1df4..245911d29 100644 --- a/api/certadd/insert.go +++ b/api/certadd/insert.go @@ -60,8 +60,8 @@ type AddRequest struct { PEM string `json:"pem"` IssuedAt *time.Time `json:"issued_at"` NotBefore *time.Time `json:"not_before"` - MetadataJson types.JSONText `json:"metadata"` - SansJson types.JSONText `json:"sans"` + MetadataJSON types.JSONText `json:"metadata"` + SansJSON types.JSONText `json:"sans"` CommonName string `json:"common_name"` } @@ -163,8 +163,8 @@ func (h *Handler) Handle(w http.ResponseWriter, r *http.Request) error { PEM: req.PEM, IssuedAt: req.IssuedAt, NotBefore: req.NotBefore, - MetadataJSON: req.MetadataJson, - SANsJSON: req.SansJson, + MetadataJSON: req.MetadataJSON, + SANsJSON: req.SansJSON, CommonName: sql.NullString{String: req.CommonName, Valid: req.CommonName != ""}, }