@@ -15,7 +15,6 @@ package main
1515
1616import (
1717 "fmt"
18- "io/ioutil"
1918 "net/url"
2019 "os"
2120 "regexp"
@@ -130,7 +129,7 @@ func getDataSources() ([]string, error) {
130129
131130 dataSourceUserFile := os .Getenv ("DATA_SOURCE_USER_FILE" )
132131 if len (dataSourceUserFile ) != 0 {
133- fileContents , err := ioutil .ReadFile (dataSourceUserFile )
132+ fileContents , err := os .ReadFile (dataSourceUserFile )
134133 if err != nil {
135134 return nil , fmt .Errorf ("failed loading data source user file %s: %s" , dataSourceUserFile , err .Error ())
136135 }
@@ -141,7 +140,7 @@ func getDataSources() ([]string, error) {
141140
142141 dataSourcePassFile := os .Getenv ("DATA_SOURCE_PASS_FILE" )
143142 if len (dataSourcePassFile ) != 0 {
144- fileContents , err := ioutil .ReadFile (dataSourcePassFile )
143+ fileContents , err := os .ReadFile (dataSourcePassFile )
145144 if err != nil {
146145 return nil , fmt .Errorf ("failed loading data source pass file %s: %s" , dataSourcePassFile , err .Error ())
147146 }
@@ -153,7 +152,7 @@ func getDataSources() ([]string, error) {
153152 ui := url .UserPassword (user , pass ).String ()
154153 dataSrouceURIFile := os .Getenv ("DATA_SOURCE_URI_FILE" )
155154 if len (dataSrouceURIFile ) != 0 {
156- fileContents , err := ioutil .ReadFile (dataSrouceURIFile )
155+ fileContents , err := os .ReadFile (dataSrouceURIFile )
157156 if err != nil {
158157 return nil , fmt .Errorf ("failed loading data source URI file %s: %s" , dataSrouceURIFile , err .Error ())
159158 }
0 commit comments