Skip to content

Commit

Permalink
fix: Trim whitespace from monitorId in src/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
clivewalkden committed Aug 11, 2024
1 parent df0418c commit eb66ac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33447,6 +33447,8 @@ async function run() {
const service = new UptimeApi(config);

for (const monitorId of monitorIds) {
// trim any whitespace
monitorId.trim();
core.debug(`Processing monitor ID: ${monitorId}`);
core.debug(`Pausing monitor: ${pause}`);
service
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ async function run() {
const service = new UptimeApi(config);

for (const monitorId of monitorIds) {
// trim any whitespace
monitorId.trim();
core.debug(`Processing monitor ID: ${monitorId}`);
core.debug(`Pausing monitor: ${pause}`);
service
Expand Down

0 comments on commit eb66ac5

Please sign in to comment.