Work
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user