fix: remove double rendering and test error (#26)
All checks were successful
/ pre-commit (push) Successful in 1m11s

Remove double template rendering and test error for non password protected note

Co-authored-by: Thibault Piron <thibault.a.piron@gmail.com>
Reviewed-on: #26
Reviewed-by: Julien Riou <jriou@monitoring@riou.xyz>
Co-authored-by: tapiron <tapiron@monitoring@riou.xyz>
Co-committed-by: tapiron <tapiron@monitoring@riou.xyz>
This commit is contained in:
tapiron 2025-09-13 19:10:50 +02:00 committed by Julien Riou
parent 401397241b
commit 938d10c3a6

View file

@ -345,9 +345,6 @@ func (h *GetWebNoteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return return
} }
h.PageData.Err = fmt.Errorf("jriou")
h.Templates.ExecuteTemplate(w, templateName, h.PageData)
h.PageData.Note = note h.PageData.Note = note
h.logger.Debug("rendering note web page") h.logger.Debug("rendering note web page")