diff --git a/keywords_array.go b/keywords_array.go index 24c36ff..60badaa 100644 --- a/keywords_array.go +++ b/keywords_array.go @@ -48,8 +48,6 @@ func (it *Items) Resolve(pointer jptr.Pointer, uri string) *Schema { } return it.Schemas[pos].Resolve(pointer.Tail(), uri) - - return nil } // ValidateKeyword implements the Keyword interface for Items diff --git a/keywords_boolean.go b/keywords_boolean.go index 9e32040..a5084fe 100644 --- a/keywords_boolean.go +++ b/keywords_boolean.go @@ -43,8 +43,6 @@ func (a *AllOf) Resolve(pointer jptr.Pointer, uri string) *Schema { } return (*a)[pos].Resolve(pointer.Tail(), uri) - - return nil } // ValidateKeyword implements the Keyword interface for AllOf @@ -127,8 +125,6 @@ func (a *AnyOf) Resolve(pointer jptr.Pointer, uri string) *Schema { } return (*a)[pos].Resolve(pointer.Tail(), uri) - - return nil } // ValidateKeyword implements the Keyword interface for AnyOf @@ -206,8 +202,6 @@ func (o *OneOf) Resolve(pointer jptr.Pointer, uri string) *Schema { } return (*o)[pos].Resolve(pointer.Tail(), uri) - - return nil } // ValidateKeyword implements the Keyword interface for OneOf diff --git a/keywords_optional.go b/keywords_optional.go index f973e54..f4f23fc 100644 --- a/keywords_optional.go +++ b/keywords_optional.go @@ -284,7 +284,6 @@ func isValidTime(time string) error { arbitraryDate := "1963-06-19" dateTime := fmt.Sprintf("%sT%s", arbitraryDate, time) return isValidDateTime(dateTime) - return nil } // A string instance is a valid against "uri-reference" if it is a