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

Method SetNillableValue

ent/setting_update.go:78–83  ·  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

76
77// SetNillableValue sets the "value" field if the given value is not nil.
78func (su *SettingUpdate) SetNillableValue(s *string) *SettingUpdate {
79 if s != nil {
80 su.SetValue(*s)
81 }
82 return su
83}
84
85// ClearValue clears the value of the "value" field.
86func (su *SettingUpdate) ClearValue() *SettingUpdate {

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.95

Tested by

no test coverage detected