Skip to content

Commit

Permalink
iotuil.ReadFile is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-dartigues committed Sep 13, 2023
1 parent 9979bcc commit 7d2ab1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/pivotal-cf/brokerapi"
"github.com/pivotal-cf/brokerapi/domain"
"github.com/satori/go.uuid"
"io/ioutil"
"net/http"
"net/url"
"os"
Expand Down Expand Up @@ -113,7 +112,7 @@ func (b *FakeProxyBroker) Services(context.Context) ([]domain.Service, error) {
}

if b.proxyConfig.ImagePath != "" {
data, err := ioutil.ReadFile(b.proxyConfig.ImagePath)
data, err := os.ReadFile(b.proxyConfig.ImagePath)
if err == nil {
encoded := base64.RawStdEncoding.EncodeToString(data)
metadata.ImageUrl = fmt.Sprintf("data:image/png;base64,%s", encoded)
Expand Down

0 comments on commit 7d2ab1f

Please sign in to comment.