Skip to content

Commit

Permalink
remove redundand variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shini4i committed May 31, 2024
1 parent 5d61af9 commit f4718c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gitlab/gitlabClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios, { AxiosRequestConfig, Method } from 'axios';
import axios, {AxiosRequestConfig, Method} from 'axios';

export class GitlabClient {
private readonly Url: string | undefined;
Expand Down Expand Up @@ -27,8 +27,7 @@ export class GitlabClient {
};

try {
const response = await axios(axiosConfig);
return response;
return await axios(axiosConfig);
} catch (error) {
console.error(`Request failed: ${method} ${url}`);
throw error;
Expand Down

0 comments on commit f4718c7

Please sign in to comment.