Skip to content

Commit

Permalink
Remove redundant array check
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestoll committed Mar 25, 2024
1 parent 16f7c0d commit 7dd26be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ module.exports._fetchS3Object = async(bucket, key) => {
* Generate a list of `num` payloads (repeated or weighted)
*/
module.exports.generatePayloads = (num, payloadInput) => {
if (Array.isArray(payloadInput) && utils.isWeightedPayload(payloadInput)) {
if (utils.isWeightedPayload(payloadInput)) {
// if weighted array, generate a list of payloads based on weights

if (num < payloadInput.length) {
Expand Down

0 comments on commit 7dd26be

Please sign in to comment.