Skip to content

Commit 8cf59f2

Browse files
authored
Merge pull request #1199 from yan12125/fix-golangci
Fix golangci by moving away from deprecated io/ioutil
2 parents e8a5cbd + b2c9482 commit 8cf59f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"crypto/tls"
66
"crypto/x509"
7-
"io/ioutil"
87
"net/http"
8+
"os"
99

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

3030
// If a CACertFile has been specified, use that for cert validation
3131
if c.CACertFile != "" {
32-
caCert, err := ioutil.ReadFile(c.CACertFile)
32+
caCert, err := os.ReadFile(c.CACertFile)
3333
if err != nil {
3434
return nil, err
3535
}

0 commit comments

Comments
 (0)