MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetNillableValue

Method SetNillableValue

ent/setting_update.go:232–237  ·  view source on GitHub ↗

SetNillableValue sets the "value" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

230
231// SetNillableValue sets the "value" field if the given value is not nil.
232func (suo *SettingUpdateOne) SetNillableValue(s *string) *SettingUpdateOne {
233 if s != nil {
234 suo.SetValue(*s)
235 }
236 return suo
237}
238
239// ClearValue clears the value of the "value" field.
240func (suo *SettingUpdateOne) ClearValue() *SettingUpdateOne {

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.95

Tested by

no test coverage detected