Skip to content

Commit ff728a1

Browse files
committed
fix(inventory): remove empty string constant
1 parent 297219c commit ff728a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/inventory/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (s *Server) health(w http.ResponseWriter, r *http.Request) {
216216
// updateDevicePosture handles posture update requests
217217
func (s *Server) updateDevicePosture(w http.ResponseWriter, r *http.Request) {
218218
deviceID := chi.URLParam(r, deviceIDParam)
219-
if deviceID == emptyString {
219+
if deviceID == "" {
220220
http.Error(w, "device id required", http.StatusBadRequest)
221221
return
222222
}

0 commit comments

Comments
 (0)