Skip to content

Commit

Permalink
fix: args typo
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Jan 10, 2025
1 parent 01165a1 commit 31004fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const simpleGit = require('simple-git');

const renderTemplate = (template, args={}) => {
let finalRender = template;
for (const [key, value] of myMap.entries()) {
for (const [key, value] of Object.entries(args)) {
finalRender = finalRender.replace(`{{${key}}}`, value);
}
return finalRender;
Expand Down Expand Up @@ -40,7 +40,6 @@ const main = async () => {
},
],
})

const requestOptions = {
method: 'POST',
port: 443,
Expand Down

0 comments on commit 31004fd

Please sign in to comment.