Skip to content

Commit

Permalink
proper declaration of content
Browse files Browse the repository at this point in the history
  • Loading branch information
mcascone committed Aug 16, 2024
1 parent b2f2e93 commit d2c4ac8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions actions/example-config-updater/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ function run() {
// if the config input is not null or not empty, use it
// otherwise, use a default value
if (config && config.length > 0) {
const content = JSON.parse(config);
content = JSON.parse(config);
}
else {
const content = {
content = {
max: "cascone",
};
}
Expand Down
4 changes: 2 additions & 2 deletions actions/example-config-updater/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export async function run() {
// if the config input is not null or not empty, use it
// otherwise, use a default value
if (config && config.length > 0) {
const content = JSON.parse(config);
content = JSON.parse(config);
}
else {
const content = {
content = {
max: "cascone",
};
}
Expand Down

0 comments on commit d2c4ac8

Please sign in to comment.