Skip to content

Commit

Permalink
ioutilはDeprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Azuki-bar committed Nov 21, 2023
1 parent dbed88d commit 2a7639e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/state-manager/pkg/mqtt_handler/mqtt_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"log/slog"
"os"
Expand Down Expand Up @@ -151,7 +150,7 @@ func getState(cc mqtt.Client, target string, id string) {
token.Wait()
return
}
raw, err := ioutil.ReadFile("../settings/esp/" + id + ".json")
raw, err := os.ReadFile("../settings/esp/" + id + ".json")
if err != nil {
log.Println(err.Error())
return
Expand Down

0 comments on commit 2a7639e

Please sign in to comment.