Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Commit ae24c78

Browse files
committed
fixed linter issue not checking error
1 parent fc8c805 commit ae24c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func publishMessage(w http.ResponseWriter, r *http.Request) {
367367
Type string `json:"type"`
368368
Data string `json:"data"`
369369
})
370-
if parseBody(r.Body, &data); err != nil {
370+
if err := parseBody(r.Body, &data); err != nil {
371371
http.Error(w, err.Error(), http.StatusBadRequest)
372372
return
373373
}

0 commit comments

Comments
 (0)