diff options
Diffstat (limited to 'vendor/github.com/keybase/go-keybase-chat-bot/kbchat/test_utils.go')
-rw-r--r-- | vendor/github.com/keybase/go-keybase-chat-bot/kbchat/test_utils.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/github.com/keybase/go-keybase-chat-bot/kbchat/test_utils.go b/vendor/github.com/keybase/go-keybase-chat-bot/kbchat/test_utils.go index 5d079a1c..e30d8e51 100644 --- a/vendor/github.com/keybase/go-keybase-chat-bot/kbchat/test_utils.go +++ b/vendor/github.com/keybase/go-keybase-chat-bot/kbchat/test_utils.go @@ -3,7 +3,6 @@ package kbchat import ( "crypto/rand" "encoding/hex" - "io/ioutil" "os" "os/exec" "path" @@ -33,9 +32,9 @@ func whichKeybase(t *testing.T) string { } func copyFile(t *testing.T, source, dest string) { - sourceData, err := ioutil.ReadFile(source) + sourceData, err := os.ReadFile(source) require.NoError(t, err) - err = ioutil.WriteFile(dest, sourceData, 0777) + err = os.WriteFile(dest, sourceData, 0777) require.NoError(t, err) } |