Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcasalboni committed May 20, 2024
1 parent 71aa0cb commit 40c221b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lambda/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports.stepFunctionsCost = (nPower, onlyColdStarts, num) => {
}

return +(baseCostPerTransition * multiplier).toFixed(5);
}
};

module.exports.stepFunctionsBaseCost = () => {
const prices = JSON.parse(process.env.sfCosts);
Expand Down Expand Up @@ -598,7 +598,7 @@ module.exports.extractDuration = (log) => {
/**
* Extract duration (in ms) from a given text log.
*/
module.exports.extractDurationFromText = (log, init=false) => {
module.exports.extractDurationFromText = (log, init = false) => {
let regex = /\tBilled Duration: (\d+) ms/m;
if (init) {
regex = /\tInit Duration: (\d+\.\d+) ms/m;
Expand All @@ -613,7 +613,7 @@ module.exports.extractDurationFromText = (log, init=false) => {
/**
* Extract duration (in ms) from a given JSON log (multi-line).
*/
module.exports.extractDurationFromJSON = (log, init=false) => {
module.exports.extractDurationFromJSON = (log, init = false) => {
// extract each line and parse it to JSON object
const lines = log.split('\n').filter((line) => line.startsWith('{')).map((line) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test-lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ describe('Lambda Functions', async() => {
});

const eventOK = {
num:10,
num: 10,
lambdaARN: 'arnOK',
lambdaConfigurations: {powerValues: ['128', '256', '512'] },
};
Expand Down

0 comments on commit 40c221b

Please sign in to comment.