mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
chore - when target might be undefined use target?.dispose() over dispose(target)
This commit is contained in:
@@ -34,7 +34,7 @@ export class MainThreadFileSystem implements MainThreadFileSystemShape {
|
||||
}
|
||||
|
||||
$unregisterProvider(handle: number): void {
|
||||
dispose(this._fileProvider.get(handle));
|
||||
this._fileProvider.get(handle)?.dispose();
|
||||
this._fileProvider.delete(handle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user