Skip to content

Commit

Permalink
Merge pull request #75 from bhavyasf/master
Browse files Browse the repository at this point in the history
fix(examples/connect): declare kc (kiteconnect client) with let and shorten expression in `ticker.js`
  • Loading branch information
vividvilla committed Jul 5, 2022
2 parents 1c1ee2b + 912bb2b commit ffbe571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var options = {
"debug": false
};

kc = new KiteConnect(options);
let kc = new KiteConnect(options);
kc.setSessionExpiryHook(sessionHook);

if(!access_token) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ var KiteTicker = function(params) {
}

function autoReconnect(t, max_retry, max_delay) {
auto_reconnect = (t == true ? true : false);
auto_reconnect = (t == true);

// Set default values
max_retry = max_retry || defaultReconnectMaxRetries;
Expand Down

0 comments on commit ffbe571

Please sign in to comment.