aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-23 04:00:16 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:13:37 +0800
commitd20926e150beed4785b31451a415bbf545f850be (patch)
treeaff504fe861c82c4a6886599b31b0d1084e25c65 /packages
parentc453099f6badd1d7b41d9458a2ffb5da381b437f (diff)
downloaddexon-0x-contracts-d20926e150beed4785b31451a415bbf545f850be.tar
dexon-0x-contracts-d20926e150beed4785b31451a415bbf545f850be.tar.gz
dexon-0x-contracts-d20926e150beed4785b31451a415bbf545f850be.tar.bz2
dexon-0x-contracts-d20926e150beed4785b31451a415bbf545f850be.tar.lz
dexon-0x-contracts-d20926e150beed4785b31451a415bbf545f850be.tar.xz
dexon-0x-contracts-d20926e150beed4785b31451a415bbf545f850be.tar.zst
dexon-0x-contracts-d20926e150beed4785b31451a415bbf545f850be.zip
Don't reassign the parameter
Diffstat (limited to 'packages')
-rw-r--r--packages/0x.js/test/utils/order_factory.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/0x.js/test/utils/order_factory.ts b/packages/0x.js/test/utils/order_factory.ts
index 6086e09f7..e3161e262 100644
--- a/packages/0x.js/test/utils/order_factory.ts
+++ b/packages/0x.js/test/utils/order_factory.ts
@@ -15,11 +15,11 @@ export const orderFactory = {
takerTokenAddress: string,
exchangeContractAddress: string,
feeRecipient: string,
- expirationUnixTimestampSec?: BigNumber): Promise<SignedOrder> {
+ expirationUnixTimestampSecIfExists?: BigNumber): Promise<SignedOrder> {
const defaultExpirationUnixTimestampSec = new BigNumber(2524604400); // Close to infinite
- expirationUnixTimestampSec = _.isUndefined(expirationUnixTimestampSec) ?
+ const expirationUnixTimestampSec = _.isUndefined(expirationUnixTimestampSecIfExists) ?
defaultExpirationUnixTimestampSec :
- expirationUnixTimestampSec;
+ expirationUnixTimestampSecIfExists;
const order = {
maker,
taker,