We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5187675 commit 395c09cCopy full SHA for 395c09c
1 file changed
main.go
@@ -7,7 +7,6 @@ import (
7
"encoding/base32"
8
"encoding/json"
9
"fmt"
10
- "io/ioutil"
11
"log"
12
"os"
13
"path/filepath"
@@ -169,7 +168,7 @@ func main() {
169
168
os.Exit(1)
170
}
171
172
- err = ioutil.WriteFile(backupPath, []byte(data), 0664)
+ err = os.WriteFile(backupPath, []byte(data), 0664)
173
if err != nil {
174
ui.Error(fmt.Sprintf("Error writing backup file: %s", err))
175
@@ -187,7 +186,7 @@ func main() {
187
186
format = arguments["--format"].(string)
188
189
190
- data, err := ioutil.ReadFile(backupPath)
+ data, err := os.ReadFile(backupPath)
191
192
ui.Error(fmt.Sprintf("Error reading backup file: %s", err))
193
0 commit comments