lib/square.js
function finished(err) {
    if (err) self.critical('Failed to store %s. %s.', base, err.message);
    if (fn) fn(err, collection);
  }
function finished(err) {
    if (err) self.critical('Failed to store %s. %s.', base, err.message);
    if (fn) fn(err, collection);
  }
function finished ( err ) { if ( err ) self . critical ( 'Failed to store %s. %s.' , base , err . message ) ; if ( fn ) fn ( err , collection ) ; }
Simple finish function to ensure that we always call our callback when it's
supplied. No matter what kind of write we need to perform.

@param {Error} err optional error
Simple finish function to ensure that we always call our callback when it s supplied . No matter what kind of write we need to perform .