lib/connection/utils.js
function retrieveSnappy() {
  var snappy = null;
  try {
    snappy = require_optional('snappy');
  } catch (error) {} // eslint-disable-line
  if (!snappy) {
    snappy = {
      compress: noSnappyWarning,
      uncompress: noSnappyWarning,
      compressSync: noSnappyWarning,
      uncompressSync: noSnappyWarning
    };
  }
  return snappy;
}
function retrieveSnappy() {
  var snappy = null;
  try {
    snappy = require_optional('snappy');
  } catch (error) {} // eslint-disable-line
  if (!snappy) {
    snappy = {
      compress: noSnappyWarning,
      uncompress: noSnappyWarning,
      compressSync: noSnappyWarning,
      uncompressSync: noSnappyWarning
    };
  }
  return snappy;
}
function retrieveSnappy ( ) { var snappy = null ; try { snappy = require_optional ( 'snappy' ) ; } catch ( error ) { } // eslint-disable-line if ( ! snappy ) { snappy = { compress : noSnappyWarning , uncompress : noSnappyWarning , compressSync : noSnappyWarning , uncompressSync : noSnappyWarning } ; } return snappy ; }
Facilitate loading Snappy optionally
Facilitate loading Snappy optionally