chore: code cleanup

This commit is contained in:
Adriano Caloiaro 2025-01-25 08:40:52 -07:00
parent 03d24172ca
commit 044ffc55e4
No known key found for this signature in database
GPG key ID: C2BC56DE73CE3F75
3 changed files with 3 additions and 2 deletions

0
Normal file
View file

View file

@ -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)

View file

@ -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
}