plugin.ts: Fixes for @wbobeirne

This commit is contained in:
Anmol Sethi 2020-11-03 16:21:18 -05:00
parent ef971009d9
commit f4d7f00033
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB
1 changed files with 1 additions and 4 deletions

View File

@ -150,9 +150,6 @@ export class PluginAPI {
if (!packageJSON.version) {
throw new Error("plugin missing version")
}
if (!packageJSON.description) {
throw new Error("plugin missing description")
}
const p = {
name: packageJSON.name,
@ -181,7 +178,7 @@ interface PackageJSON {
}
}
function q(s: string): string {
function q(s: string | undefined): string {
if (s === undefined) {
s = "undefined"
}