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

Method SetNillableReferenceCount

ent/entity_update.go:126–131  ·  view source on GitHub ↗

SetNillableReferenceCount sets the "reference_count" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

124
125// SetNillableReferenceCount sets the "reference_count" field if the given value is not nil.
126func (eu *EntityUpdate) SetNillableReferenceCount(i *int) *EntityUpdate {
127 if i != nil {
128 eu.SetReferenceCount(*i)
129 }
130 return eu
131}
132
133// AddReferenceCount adds i to the "reference_count" field.
134func (eu *EntityUpdate) AddReferenceCount(i int) *EntityUpdate {

Callers

nothing calls this directly

Calls 1

SetReferenceCountMethod · 0.95

Tested by

no test coverage detected