Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #141 from Storj/bryanchriswhite-patch-1
Browse files Browse the repository at this point in the history
Refactor coinpayments.js
  • Loading branch information
braydonf committed Nov 17, 2017
2 parents 5d85163 + fb6e901 commit 79a611d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/vendor/coinpayments.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ const options = {
let client;

const getClient = function () {
if (client) {
return client;
if (!client) {
client = new Coinpayments(options);
}

client = new Coinpayments(options);

return client;
};

Expand Down

0 comments on commit 79a611d

Please sign in to comment.