mirror of
https://github.com/acaloiaro/frm
synced 2026-07-21 18:29:12 +00:00
chore: code cleanup
This commit is contained in:
parent
03d24172ca
commit
044ffc55e4
3 changed files with 3 additions and 2 deletions
|
|
@ -66,6 +66,7 @@ func TestCreateAndUpdateForm(t *testing.T) {
|
|||
PostgresURL: os.Getenv("POSTGRES_URL"),
|
||||
WorkspaceID: workspaceID.String(),
|
||||
PostgresDisableSSL: true,
|
||||
PostgresSchema: "frm_test",
|
||||
})
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ func View(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
formID, err := formID(ctx, i)
|
||||
if err != nil {
|
||||
slog.Error("unable to view form!", "error", err)
|
||||
slog.Error("unable to view form", "error", err)
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
|
|
@ -35,7 +35,7 @@ func View(w http.ResponseWriter, r *http.Request) {
|
|||
ID: *formID,
|
||||
})
|
||||
if err != nil {
|
||||
slog.Error("unable to view form!!", "error", err)
|
||||
slog.Error("unable to view form", "error", err)
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue