resolve ioutil deprecations

This commit is contained in:
Mikaël Cluseau
2025-01-26 11:31:04 +01:00
parent ce8b7f01ef
commit 82f7cbcc92
7 changed files with 14 additions and 21 deletions

View File

@ -3,7 +3,6 @@ package main
import (
"encoding/json"
"errors"
"io/ioutil"
"os"
"path/filepath"
"time"
@ -43,7 +42,7 @@ func loadSecretData(config *config.Config) (sd *SecretData, err error) {
config: config,
}
ba, err := ioutil.ReadFile(secretDataPath())
ba, err := os.ReadFile(secretDataPath())
if err != nil {
if os.IsNotExist(err) {
err = nil