Skip to content

Commit

Permalink
Revert ":art: resolve remaining repo code scanning warnings" (#1114)
Browse files Browse the repository at this point in the history
* Revert ":art: resolve remaining repo code scanning warnings (#1113)"

This reverts commit 6a0091d.

* 🎨 reduce arrow function complexity

* 🎨 use property shorthand
  • Loading branch information
ff137 authored Oct 10, 2024
1 parent 6a0091d commit e02867d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/k6/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function setup() {
}
}

return bearerToken, issuers;
return { bearerToken, issuers };
}

// Helper function to calculate the wallet index based on VU and iteration
Expand Down
2 changes: 1 addition & 1 deletion scripts/k6/scenarios/create-invitations.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function setup() {
console.error("Failed to bootstrap issuers.");
}

return bearerToken, issuers, holders;
return { bearerToken, issuers, holders };
}

function getIssuerIndex(vu, iter) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/k6/scenarios/create-issuers.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const wallets = new SharedArray("wallets", () => {
export function setup() {
const bearerToken = getBearerToken();
file.writeString(outputFilepath, "");
return bearerToken;
return { bearerToken };
}

const iterationsPerVU = options.scenarios.default.iterations;
Expand Down
2 changes: 1 addition & 1 deletion scripts/k6/scenarios/create-schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const schemas = new SharedArray("schemas", () => {
export function setup() {
file.writeString(outputFilepath, "");
const governanceBearerToken = getGovernanceBearerToken();
return governanceBearerToken; // eslint-disable-line no-eval
return { governanceBearerToken }; // eslint-disable-line no-eval
}

const iterationsPerVU = options.scenarios.default.iterations;
Expand Down
2 changes: 1 addition & 1 deletion scripts/k6/scenarios/delete-holders.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const filepath = "output/create-holders.json";

export function setup() {
const bearerToken = getBearerToken();
return bearerToken;
return { bearerToken };
}

const iterationsPerVU = options.scenarios.default.iterations;
Expand Down

0 comments on commit e02867d

Please sign in to comment.