Skip to content

Commit

Permalink
log only if no asset changed
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Feb 20, 2024
1 parent 79c176f commit 2414935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -188210,7 +188210,7 @@ const robot = (app) => {
}
const sumOfAllChangedAssets = countDistinctAccounts + countDistinctStakingIdentities + countDistinctTokens;
if (sumOfAllChangedAssets === 0) {
await fail("No identity, token or account changed.");
console.log("No identity, token or account changed.");
return;
}
if (sumOfAllChangedAssets > 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export const robot = (app: Probot) => {

const sumOfAllChangedAssets = countDistinctAccounts + countDistinctStakingIdentities + countDistinctTokens;
if (sumOfAllChangedAssets === 0) {
await fail("No identity, token or account changed.");
console.log("No identity, token or account changed.");
return;
}
if (sumOfAllChangedAssets > 1) {
Expand Down

0 comments on commit 2414935

Please sign in to comment.