Skip to content

Commit 9f0a8b7

Browse files
removed unused files, updated ioutil => io
1 parent 79eac45 commit 9f0a8b7

File tree

4 files changed

+3
-537
lines changed

4 files changed

+3
-537
lines changed

crl_util.go

Lines changed: 0 additions & 16 deletions
This file was deleted.

path_certs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"encoding/json"
88
"encoding/pem"
99
"fmt"
10-
"io/ioutil"
10+
"io"
1111
"net/http"
1212
"strings"
1313
"time"
@@ -458,14 +458,14 @@ func revokeCert(ctx context.Context, b *keyfactorBackend, req *logical.Request,
458458
return nil, err
459459
}
460460
if res.StatusCode != 204 {
461-
r, _ := ioutil.ReadAll(res.Body)
461+
r, _ := io.ReadAll(res.Body)
462462
b.Logger().Info("revocation failed: server returned" + fmt.Sprint(res.StatusCode))
463463
b.Logger().Info("error response = " + fmt.Sprint(r))
464464
return nil, fmt.Errorf("revocation failed: server returned %s\n ", res.Status)
465465
}
466466

467467
defer res.Body.Close()
468-
_, _ = ioutil.ReadAll(res.Body)
468+
_, _ = io.ReadAll(res.Body)
469469

470470
alreadyRevoked := false
471471
var revInfo revocationInfo

path_fetch.go

Lines changed: 0 additions & 290 deletions
This file was deleted.

0 commit comments

Comments
 (0)