Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
myokoyama28 committed Mar 23, 2021
1 parent 6b41bfc commit ea20c62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/certadd/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down Expand Up @@ -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 != ""},
}

Expand Down

0 comments on commit ea20c62

Please sign in to comment.