function renderLicenseLink(data) {

  if (data.license == "Apache 2.0") {
    return "(https://opensource.org/licenses/Apache-2.0)";
  } else if (data.license == "BSD 3-Clause License") {
    return "(https://opensource.org/licenses/BSD-3-Clause)";
  } else if (data.license == "Attribution CC BY") {
    return "(https://creativecommons.org/licenses/by/4.0)";
  } else if (data.license == "Attribution-ShareAlike CC BY-SA") {
    return "(https://creativecommons.org/licenses/by-sa/4.0)";
  } else if (data.license == "Attribution-NoDerivs CC BY-ND") {
    return "(https://creativecommons.org/licenses/by-nd/4.0)";
  } else if (data.license == "Attribution-NonCommercial CC BY-NC") {
    return "(https://creativecommons.org/licenses/by-nc/4.0)";
  } else if (data.license == "Attribution-NonCommercial-ShareAlike CC BY-NC-SA") {
    return "(https://creativecommons.org/licenses/by-nc-sa/4.0)";
  } else if (data.license == "The MIT License") {
    return "(https://lbesson.mit-license.org/)";
  } else if (data.license == "No License") {
    return "";
  } else {console.log("Uhhh. Something weird happened.... Restart the whole thing...")}

}
// 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(data) {
  if (data.license == "Apache 2.0") {
    return "(https://opensource.org/licenses/Apache-2.0)";
  } else if (data.license == "BSD 3-Clause License") {
    return "(https://opensource.org/licenses/BSD-3-Clause)";
  } else if (data.license == "Attribution CC BY") {
    return "(https://creativecommons.org/licenses/by/4.0)";
  } else if (data.license == "Attribution-ShareAlike CC BY-SA") {
    return "(https://creativecommons.org/licenses/by-sa/4.0)";
  } else if (data.license == "Attribution-NoDerivs CC BY-ND") {
    return "(https://creativecommons.org/licenses/by-nd/4.0)";
  } else if (data.license == "Attribution-NonCommercial CC BY-NC") {
    return "(https://creativecommons.org/licenses/by-nc/4.0)";
  } else if (data.license == "Attribution-NonCommercial-ShareAlike CC BY-NC-SA") {
    return "(https://creativecommons.org/licenses/by-nc-sa/4.0)";
  } else if (data.license == "The MIT License") {
    return "(https://lbesson.mit-license.org/)";
  } else if (data.license == "No License") {
    return "";
  } else {console.log("Uhhh. Something weird happened.... Restart the whole thing...")}
}
function renderLicenseLink ( data ) { if ( data . license == "Apache 2.0" ) { return "(https://opensource.org/licenses/Apache-2.0)" ; } else if ( data . license == "BSD 3-Clause License" ) { return "(https://opensource.org/licenses/BSD-3-Clause)" ; } else if ( data . license == "Attribution CC BY" ) { return "(https://creativecommons.org/licenses/by/4.0)" ; } else if ( data . license == "Attribution-ShareAlike CC BY-SA" ) { return "(https://creativecommons.org/licenses/by-sa/4.0)" ; } else if ( data . license == "Attribution-NoDerivs CC BY-ND" ) { return "(https://creativecommons.org/licenses/by-nd/4.0)" ; } else if ( data . license == "Attribution-NonCommercial CC BY-NC" ) { return "(https://creativecommons.org/licenses/by-nc/4.0)" ; } else if ( data . license == "Attribution-NonCommercial-ShareAlike CC BY-NC-SA" ) { return "(https://creativecommons.org/licenses/by-nc-sa/4.0)" ; } else if ( data . license == "The MIT License" ) { return "(https://lbesson.mit-license.org/)" ; } else if ( data . license == "No License" ) { return "" ; } else { console . log ( "Uhhh. Something weird happened.... Restart the whole thing..." ) } }
If there is no license, return an empty string
If there is no license return an empty string