Skip to content

Commit cdffece

Browse files
committed
removing static function
1 parent d9b6328 commit cdffece

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

browserstack-report-action/dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38838,8 +38838,8 @@ class UploadFileForArtifact {
3883838838
this.report = report;
3883938839
}
3884038840

38841-
static async saveReportInFile(report) {
38842-
if (!report) {
38841+
async saveReportInFile() {
38842+
if (!this.report) {
3884338843
core.debug('No HTML content available to save as artifact');
3884438844
return '';
3884538845
}
@@ -38855,7 +38855,7 @@ class UploadFileForArtifact {
3885538855
core.exportVariable("BROWSERSTACK_REPORT_NAME", artifactName);
3885638856

3885738857
// Write content
38858-
fs.writeFileSync(path.join(pathName, fileName), report);
38858+
fs.writeFileSync(path.join(pathName, fileName), this.report);
3885938859
} catch (error) {
3886038860
core.warning(`Failed to save file: ${error.message}`);
3886138861
return '';

browserstack-report-action/src/utils/UploadFileForArtifact.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class UploadFileForArtifact {
77
this.report = report;
88
}
99

10-
static async saveReportInFile(report) {
11-
if (!report) {
10+
async saveReportInFile() {
11+
if (!this.report) {
1212
core.debug('No HTML content available to save as artifact');
1313
return '';
1414
}
@@ -24,7 +24,7 @@ class UploadFileForArtifact {
2424
core.exportVariable("BROWSERSTACK_REPORT_NAME", artifactName);
2525

2626
// Write content
27-
fs.writeFileSync(path.join(pathName, fileName), report);
27+
fs.writeFileSync(path.join(pathName, fileName), this.report);
2828
} catch (error) {
2929
core.warning(`Failed to save file: ${error.message}`);
3030
return '';

0 commit comments

Comments
 (0)