Skip to content

Commit

Permalink
Merge pull request #110 from Cluas/master
Browse files Browse the repository at this point in the history
fix(keywords): remove unreachable code
  • Loading branch information
b5 authored Aug 31, 2021
2 parents 2eb22ee + d984b05 commit 780655b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions keywords_array.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions keywords_boolean.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion keywords_optional.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 780655b

Please sign in to comment.