module.exports = function(params) {
  const { crashReporter } = require('electron');
  const os = require('os');
  const platformRelease = os.release();
  const arch = os.arch();
  const { uploadToServer, releaseChannel } = params;

  crashReporter.start({
    productName: 'Atom',
    companyName: 'GitHub',
    submitURL: 'https://atom.io/crash_reports',
    uploadToServer,
    extra: { platformRelease, arch, releaseChannel }
  });
};

module.exports = function(params) {
  const { crashReporter } = require('electron');
  const os = require('os');
  const platformRelease = os.release();
  const arch = os.arch();
  const { uploadToServer, releaseChannel } = params;

  const parsedUploadToServer = uploadToServer !== null? uploadToServer : false;

  crashReporter.start({
    productName: 'Atom',
    companyName: 'GitHub',
    submitURL: 'https://atom.io/crash_reports',
    parsedUploadToServer,
    extra: { platformRelease, arch, releaseChannel }
  });
};

Fix uploadToServer can't be null
Fix uploadToServer can't be null
