utils/generateMarkdown.js
// If there is no license, return an empty string
If there is no license, return an empty string
If there is no license return an empty string
function renderLicenseLink(license) {
  let link = '';
  switch (license) {
    case 'Academic.Free.License':
      link = 'https://opensource.org/licenses/AFL-3.0';
      break;
    case 'Boost.Software.License':
      link = 'https://www.boost.org/users/license.html';
      break;
    case 'ISC':
      link = 'https://opensource.org/licenses/ISC';
      break;
    case 'MIT':
      link = 'https://opensource.org/licenses/MIT';
      break;
    case 'PostgreSQL.License':
      link = 'https://www.postgresql.org/about/licence/';
      break;
    default:
      link = '';
      break;
  }
  return link;
  return '';
}
function renderLicenseLink ( license ) { let link = '' ; switch ( license ) { case 'Academic.Free.License' : link = 'https://opensource.org/licenses/AFL-3.0' ; break ; case 'Boost.Software.License' : link = 'https://www.boost.org/users/license.html' ; break ; case 'ISC' : link = 'https://opensource.org/licenses/ISC' ; break ; case 'MIT' : link = 'https://opensource.org/licenses/MIT' ; break ; case 'PostgreSQL.License' : link = 'https://www.postgresql.org/about/licence/' ; break ; default : link = '' ; break ; } return link ; return '' ; }
If there is no license, return an empty string
If there is no license return an empty string