Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Logerfo committed Oct 25, 2019
2 parents 8af9758 + 3ea4e6f commit 6dd931e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## 0.0.1 - 2019-10-24
## 0.0.1 - 2019-10-25
Initial release.
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ async function processFiles(config) {
for (const element of changedFiles.data) {
if (!paths.includes(`${REPO_DIRECTORY}/${element.filename}`)) {
core.info(`${element.filename} is ignored. Skipping...`);
return;
continue;
}
if (!isText(element.filename)) {
core.info(`${element.filename} is not a text file. Skipping...`);
return;
continue;
}
const file = await fs.readFile(element.filename, { encoding: "utf8" });
if (file.endsWith("\n") || file.endsWith("\r")) {
core.info(`${element.filename} is not compromised. Skipping...`);
return;
continue;
}
core.info(`${element.filename} is compromised. Fixing...`);
const newFile = file.concat(getLineBreakChar(file));
Expand Down

0 comments on commit 6dd931e

Please sign in to comment.