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

Method SetNillableType

ent/node_update.go:95–100  ·  view source on GitHub ↗

SetNillableType sets the "type" field if the given value is not nil.

(n *node.Type)

Source from the content-addressed store, hash-verified

93
94// SetNillableType sets the "type" field if the given value is not nil.
95func (nu *NodeUpdate) SetNillableType(n *node.Type) *NodeUpdate {
96 if n != nil {
97 nu.SetType(*n)
98 }
99 return nu
100}
101
102// SetServer sets the "server" field.
103func (nu *NodeUpdate) SetServer(s string) *NodeUpdate {

Callers

nothing calls this directly

Calls 1

SetTypeMethod · 0.95

Tested by

no test coverage detected