mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
GitBase - remove the usage of any (#276531)
This commit is contained in:
@@ -14,8 +14,7 @@ export class ApiImpl implements API {
|
||||
constructor(private _model: Model) { }
|
||||
|
||||
pickRemoteSource(options: PickRemoteSourceOptions): Promise<PickRemoteSourceResult | string | undefined> {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
return pickRemoteSource(this._model, options as any);
|
||||
return pickRemoteSource(this._model, options);
|
||||
}
|
||||
|
||||
getRemoteSourceActions(url: string): Promise<RemoteSourceAction[]> {
|
||||
@@ -31,12 +30,11 @@ export function registerAPICommands(extension: GitBaseExtensionImpl): Disposable
|
||||
const disposables: Disposable[] = [];
|
||||
|
||||
disposables.push(commands.registerCommand('git-base.api.getRemoteSources', (opts?: PickRemoteSourceOptions) => {
|
||||
if (!extension.model) {
|
||||
if (!extension.model || !opts) {
|
||||
return;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
return pickRemoteSource(extension.model, opts as any);
|
||||
return pickRemoteSource(extension.model, opts);
|
||||
}));
|
||||
|
||||
return Disposable.from(...disposables);
|
||||
|
||||
Reference in New Issue
Block a user