Develop/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 renderLicenseBadge(license) {
  if(license === 'No License'){
    return ''
  }
else if(license === 'Apache license 2.0') {
  return `![apacheBadge](https://img.shields.io/badge/License-Apache-blue)`
}
else if(license === 'MIT License') {
  return `![apacheBadge](https://img.shields.io/badge/License-MIT-green)`
}
else if(license === 'BSD 2-clause "Simplified" license') {
  return `![apacheBadge](https://img.shields.io/badge/License-BSD%202-green)`
}
}
function renderLicenseBadge ( license ) { if ( license === 'No License' ) { return '' } else if ( license === 'Apache license 2.0' ) { return ` ` } else if ( license === 'MIT License' ) { return ` ` } else if ( license === 'BSD 2-clause "Simplified" license' ) { return ` ` } }
If there is no license, return an empty string
If there is no license return an empty string