chore: last cleanup
parent
35950369ef
commit
6baea088ab
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue