Skip to content

Commit

Permalink
Implement delete example
Browse files Browse the repository at this point in the history
  • Loading branch information
chughts committed Mar 9, 2017
1 parent d6af9c0 commit f46b03d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions services/conversation/v1-workspace-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ module.exports = function (RED) {

function buildIntentParams(method, config, params) {
var message = '';
field = 'intent';
var field = 'intent';

switch (method) {
case 'updateIntent':
Expand All @@ -333,8 +333,7 @@ module.exports = function (RED) {
case 'deleteExample':
if (config['cwm-intent']) {
params[field] = config['cwm-intent'];
}
else {
} else {
message = 'a value for Intent is required';
}
break;
Expand Down Expand Up @@ -567,7 +566,7 @@ module.exports = function (RED) {
return buildParams(msg, method, config, params);
})
.then(function(){
return checkForFile(method)
return checkForFile(method);
})
.then(function(fileNeeded){
if (fileNeeded) {
Expand Down

0 comments on commit f46b03d

Please sign in to comment.