Typo - Error information lost / not returned in func Projection()

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Notice how we are returning nil instead of the actual error:

      func (Options) Projection(projection interface{}) (option.OptProjection, error) {
      	doc, err := TransformDocument(projection)
      	if err != nil {
      		return option.OptProjection{}, nil
      	}
      	opt := option.OptProjection{Projection: doc}
      	return opt, nil
      }
      

              Assignee:
              Divjot Arora (Inactive)
              Reporter:
              Gregoire Pean
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: