This commit is contained in:
2026-04-02 06:40:47 -05:00
parent b63b85bd30
commit 40b4cd775d

View File

@@ -4,7 +4,6 @@ import (
"bufio"
"errors"
"fmt"
"io/ioutil"
"os"
"sort"
"strings"
@@ -356,7 +355,7 @@ func (timerlist *TimerList) LoadFromFilename(filename string) error {
// WriteToFilename writes a TimerList to the specified file (most likely called "timer.txt").
func (timerlist *TimerList) WriteToFilename(filename string) error {
if err := ioutil.WriteFile(filename, []byte(timerlist.String()), 0640); err != nil {
if err := os.WriteFile(filename, []byte(timerlist.String()), 0640); err != nil {
return err
}
timerlist.ResetIds()