MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / timePtrIfSet

Function timePtrIfSet

sdk/cliproxy/auth/error_events.go:153–159  ·  view source on GitHub ↗
(value time.Time)

Source from the content-addressed store, hash-verified

151}
152
153func timePtrIfSet(value time.Time) *time.Time {
154 if value.IsZero() {
155 return nil
156 }
157 copyValue := value
158 return &copyValue
159}

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected