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

Method SetNillableDownloads

ent/directlink_update.go:80–85  ·  view source on GitHub ↗

SetNillableDownloads sets the "downloads" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

78
79// SetNillableDownloads sets the "downloads" field if the given value is not nil.
80func (dlu *DirectLinkUpdate) SetNillableDownloads(i *int) *DirectLinkUpdate {
81 if i != nil {
82 dlu.SetDownloads(*i)
83 }
84 return dlu
85}
86
87// AddDownloads adds i to the "downloads" field.
88func (dlu *DirectLinkUpdate) AddDownloads(i int) *DirectLinkUpdate {

Callers

nothing calls this directly

Calls 1

SetDownloadsMethod · 0.95

Tested by

no test coverage detected