Skip to content

Commit

Permalink
fix: Removing extra println and static pattern in form
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Mar 3, 2021
1 parent e409e3b commit b965ff4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd/ketchup/templates/ketchup.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ <h2 class="header">Create ketchup</h2>

<form method="POST" action="/app/ketchups/" class="create-form">
<input type="hidden" name="method" value="POST">
<input type="hidden" name="pattern" value="stable">

<p class="padding no-margin flex">
<span class="flex-grow center">
Expand Down
1 change: 0 additions & 1 deletion pkg/ketchup/ketchups.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func (a app) handleCreate(w http.ResponseWriter, r *http.Request) {

created, err := a.ketchupService.Create(r.Context(), item)
if err != nil {
fmt.Println(err)
a.rendererApp.Error(w, err)
return
}
Expand Down

0 comments on commit b965ff4

Please sign in to comment.