aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-05 08:35:51 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-05 08:35:51 +0800
commit6f73589d4075ff89717f12c04e28fea7131c40e5 (patch)
tree4689c3968b43f0285c463786ccbe97810be48534 /src
parentea6583d47e786c846c18fb4893847d3271dedbc3 (diff)
downloaddexon-sol-tools-6f73589d4075ff89717f12c04e28fea7131c40e5.tar.gz
dexon-sol-tools-6f73589d4075ff89717f12c04e28fea7131c40e5.tar.zst
dexon-sol-tools-6f73589d4075ff89717f12c04e28fea7131c40e5.zip
Use string template
Diffstat (limited to 'src')
-rw-r--r--src/utils/assert.ts2
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,