diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-05 08:35:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-05 08:35:51 +0800 |
commit | 6f73589d4075ff89717f12c04e28fea7131c40e5 (patch) | |
tree | 4689c3968b43f0285c463786ccbe97810be48534 /src/utils/assert.ts | |
parent | ea6583d47e786c846c18fb4893847d3271dedbc3 (diff) | |
download | dexon-0x-contracts-6f73589d4075ff89717f12c04e28fea7131c40e5.tar.gz dexon-0x-contracts-6f73589d4075ff89717f12c04e28fea7131c40e5.tar.zst dexon-0x-contracts-6f73589d4075ff89717f12c04e28fea7131c40e5.zip |
Use string template
Diffstat (limited to 'src/utils/assert.ts')
-rw-r--r-- | src/utils/assert.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts index 029b69321..b3c30c11d 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -31,7 +31,7 @@ export const assert = { doesBelongToStringEnum(variableName: string, value: string, stringEnum: StringEnum): void { const doesBelongToStringEnum = !_.isUndefined(stringEnum[value]); const enumValues = _.keys(stringEnum); - const enumValuesAsStrings = _.map(enumValues, enumValue => '\'' + enumValue + '\''); + const enumValuesAsStrings = _.map(enumValues, enumValue => `'${enumValue}'`); const enumValuesAsString = enumValuesAsStrings.join(', '); assert.assert( doesBelongToStringEnum, |