Skip to content

Commit

Permalink
fix: update practices from deprecated ioutil to io (#4701)
Browse files Browse the repository at this point in the history
  • Loading branch information
OremGLG authored Dec 11, 2024
1 parent cff2bb3 commit 495129f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions healthcare/fhir_resource_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"

healthcare "google.golang.org/api/healthcare/v1"
)
Expand Down Expand Up @@ -56,7 +55,7 @@ func createFHIRResource(w io.Writer, projectID, location, datasetID, fhirStoreID
}
defer resp.Body.Close()

respBytes, err := ioutil.ReadAll(resp.Body)
respBytes, err := io.ReadAll(resp.Body)
if err != nil {
return fmt.Errorf("could not read response: %w", err)
}
Expand Down

0 comments on commit 495129f

Please sign in to comment.