From 002cc7104319994a38e5fd5ead97f164f9d087cb Mon Sep 17 00:00:00 2001 From: Romain Dartigues Date: Wed, 13 Sep 2023 09:47:43 +0200 Subject: [PATCH] gofmt --- credhub_exporter.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/credhub_exporter.go b/credhub_exporter.go index 323b622..c25cfdf 100644 --- a/credhub_exporter.go +++ b/credhub_exporter.go @@ -4,12 +4,11 @@ import ( "code.cloudfoundry.org/credhub-cli/credhub" "code.cloudfoundry.org/credhub-cli/credhub/auth" "encoding/json" + "github.com/alecthomas/kingpin/v2" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" - log "github.com/sirupsen/logrus" "github.com/prometheus/common/version" - "github.com/alecthomas/kingpin/v2" - "io/ioutil" + log "github.com/sirupsen/logrus" "net/http" "os" "regexp" @@ -181,7 +180,7 @@ func main() { } if len(*caCertPath) != 0 { - b, err := ioutil.ReadFile(*caCertPath) + b, err := os.ReadFile(*caCertPath) if err != nil { log.Errorf("unable to read file '%s' : %s", *caCertPath, err.Error()) os.Exit(1)