From 01eb0bb0483060e3e5efffc5f4ad652e197eb4b1 Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Mon, 2 Dec 2024 19:51:27 +0300 Subject: [PATCH] fix failing linter Signed-off-by: nyagamunene --- cli/certs.go | 2 +- sdk/sdk.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cli/certs.go b/cli/certs.go index faedad6..d6caed5 100644 --- a/cli/certs.go +++ b/cli/certs.go @@ -450,4 +450,4 @@ func extractPrivateKey(pemKey []byte) (any, error) { } return privateKey, nil -} \ No newline at end of file +} diff --git a/sdk/sdk.go b/sdk/sdk.go index 003698e..3ffe060 100644 --- a/sdk/sdk.go +++ b/sdk/sdk.go @@ -544,7 +544,7 @@ func (sdk mgSDK) IssueFromCSR(entityID, ttl string, csr string) (Certificate, er } r := csrReq{ - CSR: csr, + CSR: csr, } d, err := json.Marshal(r) @@ -678,6 +678,5 @@ type certReq struct { } type csrReq struct { - CSR string `json:"csr,omitempty"` + CSR string `json:"csr,omitempty"` } -