Skip to content

Commit

Permalink
chore: remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mxab committed Mar 20, 2023
1 parent a3b9c9d commit bfde4e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nacp.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"flag"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/http/httputil"
"net/url"
Expand All @@ -29,7 +28,6 @@ import (
)

type contextKeyWarnings struct{}
type contextKeyValidationErrors struct{}
type contextKeyValidationError struct{}

var (
Expand Down Expand Up @@ -499,7 +497,7 @@ func buildConfig(logger hclog.Logger) *config.Config {
logger.Error("Failed to load config", "error", err)
os.Exit(1)
}
logger.Info("Loaded config", "config", c)
logger.Info("Loaded config", "config", *configPtr)
} else {
logger.Info("No config file found, using default config")
c = config.DefaultConfig()
Expand Down Expand Up @@ -586,7 +584,7 @@ func buildCustomTransport(config config.NomadServerTLS) (*http.Transport, error)
}

// create CA pool
caCert, err := ioutil.ReadFile(config.CaFile)
caCert, err := os.ReadFile(config.CaFile)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bfde4e3

Please sign in to comment.