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

Method IsEmpty

codersdk/aiproviders.go:301–303  ·  view source on GitHub ↗

IsEmpty reports whether the patch carries no fields.

()

Source from the content-addressed store, hash-verified

299
300// IsEmpty reports whether the patch carries no fields.
301func (req UpdateAIProviderRequest) IsEmpty() bool {
302 return req.DisplayName == nil && req.Enabled == nil && req.BaseURL == nil && req.APIKeys == nil && req.Settings == nil
303}
304
305func validateAIProviderName(name string) []ValidationError {
306 var validations []ValidationError

Callers 1

aiProvidersUpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected