forked from mystiq/dex
chore: fix ioutil lint error after merging MySQL ent storage
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
parent
f92a6f4457
commit
d4e82e3315
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ import (
|
||||||
"crypto/x509"
|
"crypto/x509"
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"net"
|
"net"
|
||||||
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ func (m *MySQL) makeTLSConfig() error {
|
||||||
if m.SSL.CAFile != "" {
|
if m.SSL.CAFile != "" {
|
||||||
rootCertPool := x509.NewCertPool()
|
rootCertPool := x509.NewCertPool()
|
||||||
|
|
||||||
pem, err := ioutil.ReadFile(m.SSL.CAFile)
|
pem, err := os.ReadFile(m.SSL.CAFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue