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

Refactor coinpayments.js #141

Merged
merged 1 commit into from
Nov 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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