Skip to content

Commit

Permalink
update example, remove unnecessary eslint-disable comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyl committed May 24, 2017
1 parent 021e1e2 commit 9e6d850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions example/getkdata/getk.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ args.args.forEach(function(code) {
options.end = args.end;
options.ktype = args.ktype;
options.autype = args.autype;
options.index = args.index;
options.isIndex = args.index;
stock.getKData(options).then(data => {
console.log('code %s',code);
data.forEach(function(d) {
console.log('%s',d);
});
});
})
.catch(err => {
console.error('get %s error %s', code, err);
});
});
});
1 change: 0 additions & 1 deletion src/stock/trading.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const getFq = ({ autype, code, isIndex }) => {

const getKline = ({ autype }) => (autype ? 'fq' : '');

/* eslint-disable no-eval */
const parseKData = (rawData, ktype, code) => {
const rawDataArray = rawData.split('=');
if (rawDataArray.length > 1) {
Expand Down

0 comments on commit 9e6d850

Please sign in to comment.