mirror of
https://github.com/cdr/code-server.git
synced 2025-12-08 09:23:00 +01:00
plugin.ts: Fixes for @wbobeirne
This commit is contained in:
parent
ef971009d9
commit
f4d7f00033
1 changed files with 1 additions and 4 deletions
|
|
@ -150,9 +150,6 @@ export class PluginAPI {
|
||||||
if (!packageJSON.version) {
|
if (!packageJSON.version) {
|
||||||
throw new Error("plugin missing version")
|
throw new Error("plugin missing version")
|
||||||
}
|
}
|
||||||
if (!packageJSON.description) {
|
|
||||||
throw new Error("plugin missing description")
|
|
||||||
}
|
|
||||||
|
|
||||||
const p = {
|
const p = {
|
||||||
name: packageJSON.name,
|
name: packageJSON.name,
|
||||||
|
|
@ -181,7 +178,7 @@ interface PackageJSON {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function q(s: string): string {
|
function q(s: string | undefined): string {
|
||||||
if (s === undefined) {
|
if (s === undefined) {
|
||||||
s = "undefined"
|
s = "undefined"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue