libs/index.js
function(err, files, results) {
    if(err) {
      cb(err);
    } else {
      for(var i = 0; i < results.length; i++) {
        if(results[i] !== undefined && results[i].error === undefined && results[i].id !== undefined) {
          fixtures[results[i].id] = results[i];
        }
      }
      cb(undefined, fixtures);
    }
  }
function(err, files, results) {
    if(err) {
      cb(err);
    } else {
      for(var i = 0; i < results.length; i++) {
        if(results[i] !== undefined && results[i].error === undefined && results[i].id !== undefined) {
          fixtures[results[i].id] = results[i];
        }
      }
      cb(undefined, fixtures);
    }
  }
function ( err , files , results ) { if ( err ) { cb ( err ) ; } else { for ( var i = 0 ; i < results . length ; i ++ ) { if ( results [ i ] !== undefined && results [ i ] . error === undefined && results [ i ] . id !== undefined ) { fixtures [ results [ i ] . id ] = results [ i ] ; } } cb ( undefined , fixtures ) ; } }
Format the returned data object into a fixtures object, with the fixture ID as the key and the fixture class as the value.
Format the returned data object into a fixtures object with the fixture ID as the key and the fixture class as the value .