Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-dartigues committed Sep 13, 2023
1 parent 8e158dc commit 002cc71
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions credhub_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 002cc71

Please sign in to comment.