Skip to content

Commit

Permalink
Fix broken config parser (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam authored Nov 30, 2021
1 parent 47d3d6f commit 717143c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18198,10 +18198,8 @@ async function action(payload) {
const linkMissingLines = JSON.parse(
core.getInput("link_missing_lines", { required: false }) || "false"
);
const linkMissingLinesSourceDir = JSON.parse(
core.getInput("link_missing_lines_source_dir", { required: false }) ||
"null"
);
const linkMissingLinesSourceDir =
core.getInput("link_missing_lines_source_dir", { required: false }) || null;
const onlyChangedFiles = JSON.parse(
core.getInput("only_changed_files", { required: true })
);
Expand Down
6 changes: 2 additions & 4 deletions src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ async function action(payload) {
const linkMissingLines = JSON.parse(
core.getInput("link_missing_lines", { required: false }) || "false"
);
const linkMissingLinesSourceDir = JSON.parse(
core.getInput("link_missing_lines_source_dir", { required: false }) ||
"null"
);
const linkMissingLinesSourceDir =
core.getInput("link_missing_lines_source_dir", { required: false }) || null;
const onlyChangedFiles = JSON.parse(
core.getInput("only_changed_files", { required: true })
);
Expand Down

0 comments on commit 717143c

Please sign in to comment.