jspf: fixed creating new file in append mode

This commit is contained in:
Philipp Wolfer 2024-01-14 23:41:15 +01:00
parent 66242d0057
commit 6281554248
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B

View file

@ -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.
@ -180,7 +180,7 @@ func (b *JSPFBackend) readJSPF() error {
if b.append {
file, err := os.Open(b.filePath)
if err != nil {
return err
return nil
}
defer file.Close()