// Check makes sure app type is valid
Check makes sure app type is valid
// Check makes sure app type is valid
func (t AppType) Check() error {
	if string(t) == "" {
		return nil
	}
	switch t {
	case AppUser, AppService, AppRuntime:
		return nil
	default:
		return trace.BadParameter("invalid app type %q", t)
	}
}
func ( t AppType ) Check ( ) error { if string ( t ) == " " { return nil } switch t { case AppUser , AppService , AppRuntime : return nil default : return trace . BadParameter ( " " , t ) } }
Check makes sure app type is valid
Check makes sure app type is valid