Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcasalboni committed Oct 23, 2019
1 parent a963e7e commit 8f117cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lambda/optimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ module.exports.handler = async(event, context) => {
const {lambdaARN, analysis, autoOptimize, autoOptimizeAlias} = event;

const optimalValue = analysis.power;

validateInput(lambdaARN, optimalValue); // may throw

if (!autoOptimize) {
return console.log("Not optimizing");
return console.log('Not optimizing');
}

if (!autoOptimizeAlias) {
Expand All @@ -25,7 +25,7 @@ module.exports.handler = async(event, context) => {
await utils.createPowerConfiguration(lambdaARN, optimalValue, autoOptimizeAlias);
}

return "OK";
return 'OK';
};

const validateInput = (lambdaARN, optimalValue) => {
Expand Down
2 changes: 1 addition & 1 deletion lambda/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports.createPowerConfiguration = async(lambdaARN, value, alias) => {
/**
* Retrieve a given Lambda Function's memory size (always $LATEST version)
*/
module.exports.getLambdaPower = async (lambdaARN) => {
module.exports.getLambdaPower = async(lambdaARN) => {
console.log('Getting current power value');
const params = {
FunctionName: lambdaARN,
Expand Down

0 comments on commit 8f117cc

Please sign in to comment.