mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-19 11:39:29 +02:00
jspf: fixed creating new file in append mode
This commit is contained in:
parent
66242d0057
commit
6281554248
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright © 2023 Philipp Wolfer <phw@uploadedlobster.com>
|
Copyright © 2023-2024 Philipp Wolfer <phw@uploadedlobster.com>
|
||||||
|
|
||||||
This file is part of Scotty.
|
This file is part of Scotty.
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ func (b *JSPFBackend) readJSPF() error {
|
||||||
if b.append {
|
if b.append {
|
||||||
file, err := os.Open(b.filePath)
|
file, err := os.Open(b.filePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
|
Loading…
Add table
Reference in a new issue