Skip to content

Commit c107c51

Browse files
committed
Fix error reading empty json file
1 parent 260cc6b commit c107c51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/convert-component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export class ConvertComponent extends ConverterComponent {
9191
* Create main file which would contains all global functions.
9292
*/
9393
this.fileOperations.createFile(this.mainDirToExport, null, Constants.GLOBAL_FUNCS_FILE_NAME, 'json');
94+
this.fileOperations.appendFileData(this.mainDirToExport, null, Constants.GLOBAL_FUNCS_FILE_NAME, 'json', {});
9495
}
9596

9697
private onResolveEnd(...rest) {

0 commit comments

Comments
 (0)