MCPcopy Index your code
hub / github.com/coder/coder / validateHealthSettings

Function validateHealthSettings

coderd/debug.go:282–290  ·  view source on GitHub ↗
(settings healthsdk.HealthSettings)

Source from the content-addressed store, hash-verified

280}
281
282func validateHealthSettings(settings healthsdk.HealthSettings) error {
283 for _, dismissed := range settings.DismissedHealthchecks {
284 ok := slices.Contains(healthsdk.HealthSections, dismissed)
285 if !ok {
286 return xerrors.Errorf("unknown healthcheck section: %s", dismissed)
287 }
288 }
289 return nil
290}
291
292// For some reason the swagger docs need to be attached to a function.
293

Callers 1

Calls 2

ContainsMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected