index.js
function contentsSync(file, options) {
  if (!utils.isObject(file)) {
    throw new TypeError('expected file to be an object');
  }

  try {
    // ideally we want to stat the real, initial filepath
    file.stat = fs.lstatSync(file.history[0]);
  } catch (err) {
    try {
      // if that doesn't work, try again
      file.stat = fs.lstatSync(file.path);
    } catch (err) {
      file.stat = new fs.Stats();
    }
  }

  utils.syncContents(file, options);
  return file;
}
function contentsSync(file, options) {
  if (!utils.isObject(file)) {
    throw new TypeError('expected file to be an object');
  }

  try {
    // ideally we want to stat the real, initial filepath
    file.stat = fs.lstatSync(file.history[0]);
  } catch (err) {
    try {
      // if that doesn't work, try again
      file.stat = fs.lstatSync(file.path);
    } catch (err) {
      file.stat = new fs.Stats();
    }
  }

  utils.syncContents(file, options);
  return file;
}
function contentsSync ( file , options ) { if ( ! utils . isObject ( file ) ) { throw new TypeError ( 'expected file to be an object' ) ; } try { // ideally we want to stat the real, initial filepath file . stat = fs . lstatSync ( file . history [ 0 ] ) ; } catch ( err ) { try { // if that doesn't work, try again file . stat = fs . lstatSync ( file . path ) ; } catch ( err ) { file . stat = new fs . Stats ( ) ; } } utils . syncContents ( file , options ) ; return file ; }
Sync method for getting `file.contents`.

@param  {Object} `file`
@param  {Object} `options`
@return {Object}
Sync method for getting file . contents .