From 9990e055a3e091bc5751c789cad0a577bb691df3 Mon Sep 17 00:00:00 2001 From: joeybloggs Date: Wed, 2 Sep 2015 08:34:22 -0400 Subject: [PATCH] update comments --- validator.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/validator.go b/validator.go index 1dae1d6..85dcdaf 100644 --- a/validator.go +++ b/validator.go @@ -141,9 +141,6 @@ type FieldError struct { // New creates a new Validate instance for use. func New(config *Config) *Validate { - // if config.CustomTypeFuncs != nil && len(config.CustomTypeFuncs) > 0 { - // config.hasCustomFuncs = true - // } v := &Validate{ tagName: config.TagName, tagsCache: &tagCacheMap{m: map[string]*cachedTag{}}, @@ -152,7 +149,7 @@ func New(config *Config) *Validate { }}} if len(v.aliasValidators) == 0 { - // must copy validators for separate validations to be used in each validator instance + // must copy alias validators for separate validations to be used in each validator instance v.aliasValidators = map[string]string{} for k, val := range bakedInAliasValidators { v.RegisterAliasValidation(k, val)