Skip to content

Commit

Permalink
fix: add the missed return before the callback when handleExistingLam…
Browse files Browse the repository at this point in the history
…bda fails in upgrade command (#67)
  • Loading branch information
RonWang authored Mar 25, 2020
1 parent ff3c2a0 commit 6b941af
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions PROJECT_PATH/ask-resources.json

This file was deleted.

2 changes: 1 addition & 1 deletion lib/commands/util/upgrade-project/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function _createV2HostedSkillProject(upgradeInfo, profile, doDebug, callback) {
try {
hostedSkillHelper.handleExistingLambdaCode(rootPath, gitRepoUrl, profile);
} catch (codeErr) {
callback(codeErr);
return callback(codeErr);
}
// 5. config git setting
hostedSkillHelper.postUpgradeGitSetup(profile, doDebug, gitClient, (gitErr) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const ResourcesConfig = require('@src/model/resources-config');
const CLiError = require('@src/exceptions/cli-error');
const CONSTANTS = require('@src/utils/constants');

//
describe('Commands upgrade-project test - hosted skill helper test', () => {
const TEST_ERROR = 'testError';
const TEST_PROFILE = 'default';
Expand Down

0 comments on commit 6b941af

Please sign in to comment.