Skip to content

Commit b4893b0

Browse files
committed
Debug dict path
1 parent 0231657 commit b4893b0

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

services/personality_insights/v3.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ module.exports = function (RED) {
181181
node.status({});
182182

183183
payloadCheck(msg)
184-
.then(function() {
185-
return Promise.reject(payloadutils.kuromojipath());
186-
})
187184
.then(function(){
188185
return wordcountCheck(msg, config);
189186
})
@@ -194,9 +191,11 @@ module.exports = function (RED) {
194191
return setEndPoint(config);
195192
})
196193
.then(function(){
194+
return Promise.reject('Got to prepareParams');
197195
return prepareParams(msg, config);
198196
})
199197
.then(function(params){
198+
200199
node.status({fill:'blue', shape:'dot', text:'requesting'});
201200
return executeService(msg, params);
202201
})

utilities/payload-utils.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,6 @@ PayloadUtils.prototype = {
154154
return code;
155155
},
156156

157-
kuromojipath: function() {
158-
var dic_path = '/../../kuromoji/dict';
159-
var dic_dir = path.normalize(__dirname + dic_path);
160-
var filelist = '';
161-
162-
fs.readdirSync(dic_dir).forEach((file) => {
163-
filelist += ',' + file;
164-
});
165-
166-
return filelist;
167-
},
168-
169157
// Function that is returns a function to count
170158
// the characters in each language.
171159
word_count: function(ct) {

0 commit comments

Comments
 (0)