Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-479

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

      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@mongodb.com Divjot Arora (Inactive)
            Reporter:
            gpean Gregoire Pean
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: