MCPcopy Index your code
hub / github.com/coder/coder / takeFirstTime

Function takeFirstTime

coderd/database/dbfake/dbfake.go:904–911  ·  view source on GitHub ↗

takeFirstTime returns the first non-zero time.Time.

(values ...time.Time)

Source from the content-addressed store, hash-verified

902
903// takeFirstTime returns the first non-zero time.Time.
904func takeFirstTime(values ...time.Time) time.Time {
905 for _, v := range values {
906 if !v.IsZero() {
907 return v
908 }
909 }
910 return time.Time{}
911}
912
913// mustWorkspaceAppByWorkspaceAndBuildAndAppID finds a workspace app by
914// workspace ID, build number, and app ID. It returns the workspace app

Callers 1

doInTXMethod · 0.85

Calls 1

IsZeroMethod · 0.45

Tested by

no test coverage detected