File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
client/src/connection/rest Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 2
2
// SPDX-License-Identifier: Apache-2.0
3
3
import { l10n } from "vscode" ;
4
4
5
- import axios , { AxiosResponse } from "axios" ;
5
+ import { AxiosResponse } from "axios" ;
6
6
7
7
import { Link , Server , ServersApi , SessionRequest } from "./api/compute" ;
8
8
import { BaseCompute , Compute , getApiConfig , stateOptions } from "./common" ;
@@ -94,14 +94,7 @@ export class ComputeServer extends Compute {
94
94
} ,
95
95
} ;
96
96
97
- let resp : AxiosResponse ;
98
- try {
99
- resp = await this . requestLink ( link , { data : body } ) ;
100
- } catch ( error ) {
101
- if ( axios . isAxiosError ( error ) ) {
102
- throw new Error ( error . message ) ;
103
- }
104
- }
97
+ const resp = await this . requestLink ( link , { data : body } ) ;
105
98
106
99
//Create the session from the http resposne
107
100
const session = ComputeSession . fromResponse ( resp ) ;
You can’t perform that action at this time.
0 commit comments