From de08646bbac8f3a2bbd2336e0986f73750c1c288 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Tue, 27 Aug 2024 16:04:43 +0200 Subject: [PATCH] Add unknown licenses, but display "Unknown" as a license type --- templates/licenseElement.ejs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/licenseElement.ejs b/templates/licenseElement.ejs index 20ab07d..2aa41ae 100644 --- a/templates/licenseElement.ejs +++ b/templates/licenseElement.ejs @@ -1,6 +1,5 @@ - <% if ( license ) { %>
-
License: <%= license %>
+
License: <%= license ? license : "Unknown" %>
<%= moduleName %><% if (author) { %> (by <%= author %>)<% } %>
@@ -9,4 +8,3 @@ Required by <%= name %>.<% } %>
- <% } %>