fix: remove double rendering and test error (#26)
All checks were successful
/ pre-commit (push) Successful in 1m11s
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:
parent
401397241b
commit
938d10c3a6
1 changed files with 0 additions and 3 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue