repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
bc64e0d
parent
b144c29
author
Antonio Mika
date
2024-05-29 20:21:47 +0000 UTC
Fix lint
1 files changed,  +1, -1
M filehandlers/imgs/handler.go
+1, -1
1@@ -214,7 +214,7 @@ func (h *UploadImgHandler) Delete(s ssh.Session, entry *utils.FileEntry) error {
2 
3 	err = h.DBPool.RemovePosts([]string{post.ID})
4 	if err != nil {
5-		logger.Error("error removing image", err)
6+		logger.Error("error removing image", "error", err)
7 		return fmt.Errorf("error for %s: %v", filename, err)
8 	}
9