We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 297219c commit ff728a1Copy full SHA for ff728a1
services/inventory/server/server.go
@@ -216,7 +216,7 @@ func (s *Server) health(w http.ResponseWriter, r *http.Request) {
216
// updateDevicePosture handles posture update requests
217
func (s *Server) updateDevicePosture(w http.ResponseWriter, r *http.Request) {
218
deviceID := chi.URLParam(r, deviceIDParam)
219
- if deviceID == emptyString {
+ if deviceID == "" {
220
http.Error(w, "device id required", http.StatusBadRequest)
221
return
222
}
0 commit comments