summaryrefslogtreecommitdiffstats
path: root/pkg/gui/test_mode.go
diff options
context:
space:
mode:
authorjiepeng <jiepengthegreat@126.com>2022-09-13 18:11:03 +0800
committerJesse Duffield <jessedduffield@gmail.com>2022-09-17 15:10:41 -0700
commitb8900baf1ada72c24e58c487122c21e80858f52a (patch)
tree64c67fecd215d00e540a5d5c2030878b92cff981 /pkg/gui/test_mode.go
parentc81333fefe2f1e27ab2fcb6a0dc37d82ca47c711 (diff)
remove deprecated calls
Diffstat (limited to 'pkg/gui/test_mode.go')
-rw-r--r--pkg/gui/test_mode.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/gui/test_mode.go b/pkg/gui/test_mode.go
index 7d1a5eb5a..97c291828 100644
--- a/pkg/gui/test_mode.go
+++ b/pkg/gui/test_mode.go
@@ -2,7 +2,6 @@ package gui
import (
"encoding/json"
- "io/ioutil"
"log"
"os"
"strconv"
@@ -93,7 +92,7 @@ func GetRecordingSpeed() float64 {
func LoadRecording() (*gocui.Recording, error) {
path := os.Getenv("REPLAY_EVENTS_FROM")
- data, err := ioutil.ReadFile(path)
+ data, err := os.ReadFile(path)
if err != nil {
return nil, err
}
@@ -120,5 +119,5 @@ func SaveRecording(recording *gocui.Recording) error {
path := recordEventsTo()
- return ioutil.WriteFile(path, jsonEvents, 0o600)
+ return os.WriteFile(path, jsonEvents, 0o600)
}