Skip to content
This repository has been archived by the owner on Jun 5, 2021. It is now read-only.

Commit

Permalink
fix: Fixed argument check
Browse files Browse the repository at this point in the history
  • Loading branch information
floric committed Aug 1, 2020
1 parent acba09c commit 4ed415b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function runAction() {
const context = github_1.getContext();
const key = core.getInput("key");
const value = core.getInput("value");
if (!!key || Number.isNaN(Number.parseFloat(value))) {
if (!key || Number.isNaN(Number.parseFloat(value))) {
throw new Error("Invalid arguments delivered");
}
const path = `data/values/${new Date().getUTCFullYear()}/${key}.json`;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function runAction() {
const context = getContext();
const key = core.getInput("key");
const value = core.getInput("value");
if (!!key || Number.isNaN(Number.parseFloat(value))) {
if (!key || Number.isNaN(Number.parseFloat(value))) {
throw new Error("Invalid arguments delivered");
}
const path = `data/values/${new Date().getUTCFullYear()}/${key}.json`;
Expand Down

0 comments on commit 4ed415b

Please sign in to comment.