MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / SetNillableTimestamp

Method SetNillableTimestamp

ent/gitcommit_create.go:107–112  ·  view source on GitHub ↗

SetNillableTimestamp sets the "timestamp" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

105
106// SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
107func (gcc *GitCommitCreate) SetNillableTimestamp(t *time.Time) *GitCommitCreate {
108 if t != nil {
109 gcc.SetTimestamp(*t)
110 }
111 return gcc
112}
113
114// SetPrNumber sets the "pr_number" field.
115func (gcc *GitCommitCreate) SetPrNumber(s string) *GitCommitCreate {

Callers

nothing calls this directly

Calls 1

SetTimestampMethod · 0.95

Tested by

no test coverage detected