Skip to content

Commit 2ac4ec8

Browse files
fix: remove CI error
1 parent 638e0c4 commit 2ac4ec8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

cmd/api/errors.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@ import (
44
"net/http"
55
)
66

7-
func (app *application) alreadyExistVenue(w http.ResponseWriter, r *http.Request, err error) {
8-
app.logger.Warnw("venue already exists",
9-
"method", r.Method,
10-
"path", r.URL.Path,
11-
"error", err.Error(),
12-
)
13-
writeJSONError(w, http.StatusConflict, "a venue with this name already exists for this owner")
14-
}
15-
167
func (app *application) internalServerError(w http.ResponseWriter, r *http.Request, err error) {
178
app.logger.Errorw("internal error", "method", r.Method, "path", r.URL.Path,
189
"error", err.Error())

0 commit comments

Comments
 (0)