chore: last cleanup

pull/3896/head
Henrique Dias 2025-07-03 06:40:17 +02:00
parent 35950369ef
commit 6baea088ab
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"io"
"log"
"net/http"
"net/url"
"os"
@ -75,7 +76,7 @@ func resourceDeleteHandler(fileCache FileCache) handleFunc {
err = d.store.Share.DeleteWithPathPrefix(file.Path)
if err != nil {
fmt.Println("Warning: Error(s) occurred while deleting associated shares with file:" + err.Error())
log.Printf("WARNING: Error(s) occurred while deleting associated shares with file: %s", err)
}
// delete thumbnails

View File

@ -78,7 +78,6 @@ func (s shareBackend) Delete(hash string) error {
func (s shareBackend) DeleteWithPathPrefix(pathPrefix string) error {
var links []share.Link
s.db.Prefix("Path", pathPrefix, &links)
if err := s.db.Prefix("Path", pathPrefix, &links); err != nil {
return err
}