Skip to content

Commit

Permalink
Minify Authed function in fetch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ripkova committed Jul 15, 2023
1 parent b9d4aa8 commit ad4ab18
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/commands/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,7 @@ module.exports = {
if (json.success) {
var webhooks = "";
for (var i = 0; i < json.webhooks.length; i++) {
let authed = "";
if (json.webhooks[i].authed == "0") {
authed = "False";
} else if (json.webhooks[i].authed == "1"){
authed = "True";
}
let authed = (json.webhooks[i].authed == "1") ? "True" : "False";
webhooks += `Web ID: \`${json.webhooks[i].webid}\` - Base link: \`${json.webhooks[i].short_baselink}\` - Useragent: \`${json.webhooks[i].useragent}\` - Authed: \`${authed}\`\n`
}

Expand Down

0 comments on commit ad4ab18

Please sign in to comment.