Skip to content

Commit

Permalink
remove redundant logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mriccia committed May 24, 2023
1 parent 32f9533 commit c0dd5ff
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lambda/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,8 @@ module.exports.createPowerConfiguration = async(lambdaARN, value, alias, envVars
await utils.createLambdaAlias(lambdaARN, alias, Version);
}
} catch (error) {
if (error.message && error.message.includes('Alias already exists')) {
// shouldn't happen, but nothing we can do in that case
console.log('OK, even if: ', error);
} else {
console.log('error during config creation for value ' + value);
throw error; // a real error :)
}
console.log('error during config creation for value ' + value);
throw error; // a real error :)
}
};

Expand Down

0 comments on commit c0dd5ff

Please sign in to comment.