func determineTimeout(spec *buildv1alpha1.BuildSpec, dc *prowjobv1.DecorationConfig, defaultTimeout time.Duration) time.Duration {
	switch {
	case spec.Timeout != nil:
		return spec.Timeout.Duration
	case dc != nil && dc.Timeout.Duration > 0:
		return dc.Timeout.Duration
	default:
		return defaultTimeout
	}
}
func determineTimeout(spec *buildv1alpha1.BuildSpec, dc *prowjobv1.DecorationConfig, defaultTimeout time.Duration) time.Duration {
	switch {
	case spec.Timeout != nil:
		return spec.Timeout.Duration
	case dc != nil && dc.Timeout.Duration > 0:
		return dc.Timeout.Duration
	default:
		return defaultTimeout
	}
}
func determineTimeout ( spec * buildv1alpha1 . BuildSpec , dc * prowjobv1 . DecorationConfig , defaultTimeout time . Duration ) time . Duration { switch { case spec . Timeout != nil : return spec . Timeout . Duration case dc != nil && dc . Timeout . Duration > 0 : return dc . Timeout . Duration default : return defaultTimeout } }
// determineTimeout decides the timeout value used for build
determineTimeout decides the timeout value used for build