MCPcopy Create free account
hub / github.com/compozy/agh / optionalTime

Function optionalTime

internal/api/core/tasks.go:3075–3081  ·  view source on GitHub ↗
(value time.Time)

Source from the content-addressed store, hash-verified

3073}
3074
3075func optionalTime(value time.Time) *time.Time {
3076 if value.IsZero() {
3077 return nil
3078 }
3079 cloned := value
3080 return &cloned
3081}
3082
3083func cloneRawMessagePtr(source *json.RawMessage) *json.RawMessage {
3084 if source == nil {

Calls 1

IsZeroMethod · 0.45

Tested by

no test coverage detected