Skip to content

Commit

Permalink
Merge pull request #1199 from yan12125/fix-golangci
Browse files Browse the repository at this point in the history
Fix golangci by moving away from deprecated io/ioutil
  • Loading branch information
timofurrer committed Aug 4, 2022
2 parents e8a5cbd + b2c9482 commit 8cf59f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"crypto/tls"
"crypto/x509"
"io/ioutil"
"net/http"
"os"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
"github.com/xanzy/go-gitlab"
Expand All @@ -29,7 +29,7 @@ func (c *Config) Client(ctx context.Context) (*gitlab.Client, error) {

// If a CACertFile has been specified, use that for cert validation
if c.CACertFile != "" {
caCert, err := ioutil.ReadFile(c.CACertFile)
caCert, err := os.ReadFile(c.CACertFile)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8cf59f2

Please sign in to comment.