Strict null cehck extHostApiCommands

This commit is contained in:
Matt Bierner
2019-03-11 09:05:34 -07:00
parent 963ddff246
commit 11d538d933
4 changed files with 13 additions and 12 deletions

View File

@@ -241,11 +241,7 @@ export class CommandsConverter {
return result;
}
fromInternal(command: modes.Command | undefined): vscode.Command | undefined {
if (!command) {
return undefined;
}
fromInternal(command: modes.Command): vscode.Command {
const id = ObjectIdentifier.of(command);
if (typeof id === 'number') {