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

Method SetNillableDownloads

ent/directlink_update.go:327–332  ·  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

325
326// SetNillableDownloads sets the "downloads" field if the given value is not nil.
327func (dluo *DirectLinkUpdateOne) SetNillableDownloads(i *int) *DirectLinkUpdateOne {
328 if i != nil {
329 dluo.SetDownloads(*i)
330 }
331 return dluo
332}
333
334// AddDownloads adds i to the "downloads" field.
335func (dluo *DirectLinkUpdateOne) AddDownloads(i int) *DirectLinkUpdateOne {

Callers

nothing calls this directly

Calls 1

SetDownloadsMethod · 0.95

Tested by

no test coverage detected