~rogpeppe/mgo/trunk

« back to all changes in this revision

Viewing changes to gridfs.go

  • Committer: Roger Peppe
  • Date: 2013-07-22 16:11:01 UTC
  • Revision ID: roger.peppe@canonical.com-20130722161101-0xcy0uim7uzcgi0s
mgo: fix dubious use of types

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
                // Ignoring the error here shouldn't be a big deal
282
282
                // as we're reading the file and the loop iteration
283
283
                // for this file is finished.
284
 
                _ = file.Close()
 
284
                _ = (*file).Close()
285
285
        }
286
286
        var doc gfsFile
287
287
        if !iter.Next(&doc) {