Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-chiorean committed May 17, 2024
1 parent 056bb95 commit 7a98121
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ func (s *Schema) Hash() [sha256.Size]byte {
return sha256.Sum256([]byte(s.String()))
}

// ResolveRefMonomorphised -
// If a Ref is not found, returns ErrNotFound.
func (s *Schema) ResolveRefMonomorphised(ref *Ref) (*Data, error) {
out := &Data{}
err := s.ResolveRefToType(ref, out)
if err != nil {

if err := s.ResolveRefToType(ref, out); err != nil {
// If a ref is not found, returns ErrNotFound
return nil, err
}
return out.Monomorphise(ref)
Expand Down

0 comments on commit 7a98121

Please sign in to comment.