build-system/tasks/prepend-global/index.js
/**
 * Checks that only 1 AMP_CONFIG should exist after append.
 *
 * @param {string} str
 */
Checks that only 1 AMP_CONFIG should exist after append.
@param {string} str
Checks that only 1 AMP_CONFIG should exist after append . @param { string } str
function sanityCheck(str) {
  if (numConfigs(str) != 1) {
    throw new Error(
      'Found ' + numMatches + ' AMP_CONFIG(s) before write. Aborting!');
  }
}
function sanityCheck ( str ) { if ( numConfigs ( str ) != 1 ) { throw new Error ( 'Found ' + numMatches + ' AMP_CONFIG(s) before write. Aborting!' ) ; } }
Checks that only 1 AMP_CONFIG should exist after append.
Checks that only 1 AMP_CONFIG should exist after append .