Skip to content

Commit

Permalink
ignore updateFunction as not tested because SDK is throwing an uncatc…
Browse files Browse the repository at this point in the history
…hable error ... #85
  • Loading branch information
nelsonic committed Feb 3, 2024
1 parent 5ba173e commit bfc3a4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = function upload (pkg, callback) {
const FUNCTION_NAME = utils.functionName(pkg);
// try {
lambda.getFunction({ FunctionName: FUNCTION_NAME }, function (err, data) {
/* istanbul ignore else */
if (err) { // if the function does not already exist we create it.
console.error('upload lambda.getFunction error:', err);
return lambda.createFunction(createParams(pkg), callback);
Expand Down Expand Up @@ -53,6 +54,7 @@ function createParams (pkg) {
};
}

/* istanbul ignore next */
function updateFunction (pkg, callback) {
const FUNCTION_NAME = utils.functionName(pkg);
const UPDATE_PARAMS = { // obviously they are different ... duh!
Expand Down

0 comments on commit bfc3a4f

Please sign in to comment.