From 26db2473e9322dde0d6e87cf680257ac13ecb278 Mon Sep 17 00:00:00 2001 From: Evgenii Korolevskii Date: Fri, 30 Sep 2022 02:23:20 +0200 Subject: [PATCH] fix empty first line --- dist/index.js | 2 +- src/authutil.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8cfe4f9..44f099a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -180,7 +180,7 @@ function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) { suppressEmptyNode: true }; const builder = new fast_xml_parser_1.XMLBuilder(xmlBuilderOptions); - const output = builder.build(xmlSource); + const output = builder.build(xmlSource).trim(); core.debug(output); fs.writeFileSync(tempFileLocation, output); } diff --git a/src/authutil.ts b/src/authutil.ts index 53e14ad..cb40453 100644 --- a/src/authutil.ts +++ b/src/authutil.ts @@ -193,7 +193,7 @@ function writeFeedToFile( const builder = new XMLBuilder(xmlBuilderOptions); - const output = builder.build(xmlSource); + const output = builder.build(xmlSource).trim(); core.debug(output);