debt - reduce null | undefined usages

This commit is contained in:
Benjamin Pasero
2019-03-20 08:28:12 +01:00
parent eac048313a
commit 10c0126e4b
25 changed files with 59 additions and 68 deletions

View File

@@ -234,7 +234,7 @@ class FormatOnSaveParticipant implements ISaveParticipantParticipant {
const timeout = this._configurationService.getValue<number>('editor.formatOnSaveTimeout', { overrideIdentifier: model.getLanguageIdentifier().language, resource: editorModel.getResource() });
return new Promise<TextEdit[] | null | undefined>((resolve, reject) => {
return new Promise<TextEdit[] | null>((resolve, reject) => {
const source = new CancellationTokenSource();
const request = getDocumentFormattingEdits(this._telemetryService, this._editorWorkerService, model, model.getFormattingOptions(), FormatMode.Auto, source.token);