File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
browserstack-report-action Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -38283,12 +38283,12 @@ class ReportService {
3828338283 },
3828438284 });
3828538285 if (response.status < 200 || response.status > 299) {
38286- return this .errorResponse(response?.data?.errorMessage || "Something Went Wrong while Fetching report");
38286+ return ReportService .errorResponse(response?.data?.errorMessage || "Something Went Wrong while Fetching report");
3828738287 }
3828838288 return response.data;
3828938289 } catch (error) {
3829038290 core.info(`Error fetching report: ${error.message}`);
38291- return this .errorResponse(error.message);
38291+ return ReportService .errorResponse(error.message);
3829238292 }
3829338293 }
3829438294
@@ -38303,7 +38303,7 @@ class ReportService {
3830338303 timeManager.setPollingInterval(pollingInterval);
3830438304 const poll = async (retries) => {
3830538305 if (timeManager.checkTimeout()) {
38306- return this .handleErrorStatus(constants.REPORT_STATUS.IN_PROGRESS);
38306+ return ReportService .handleErrorStatus(constants.REPORT_STATUS.IN_PROGRESS);
3830738307 }
3830838308
3830938309 const reportData = await this.fetchReport({
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ class ReportService {
1616 } ,
1717 } ) ;
1818 if ( response . status < 200 || response . status > 299 ) {
19- return this . errorResponse ( response ?. data ?. errorMessage || "Something Went Wrong while Fetching report" ) ;
19+ return ReportService . errorResponse ( response ?. data ?. errorMessage || "Something Went Wrong while Fetching report" ) ;
2020 }
2121 return response . data ;
2222 } catch ( error ) {
2323 core . info ( `Error fetching report: ${ error . message } ` ) ;
24- return this . errorResponse ( error . message ) ;
24+ return ReportService . errorResponse ( error . message ) ;
2525 }
2626 }
2727
@@ -36,7 +36,7 @@ class ReportService {
3636 timeManager . setPollingInterval ( pollingInterval ) ;
3737 const poll = async ( retries ) => {
3838 if ( timeManager . checkTimeout ( ) ) {
39- return this . handleErrorStatus ( constants . REPORT_STATUS . IN_PROGRESS ) ;
39+ return ReportService . handleErrorStatus ( constants . REPORT_STATUS . IN_PROGRESS ) ;
4040 }
4141
4242 const reportData = await this . fetchReport ( {
You can’t perform that action at this time.
0 commit comments