From 1fc1bcc5d4d5ac842156cbc00901649dc4c2f624 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 28 Dec 2023 15:27:37 +0100 Subject: chore(typescript-eslint): no-useless-template-literals (#2589) --- src/modules/commerce/index.ts | 2 +- src/modules/lorem/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/commerce/index.ts b/src/modules/commerce/index.ts index 425bc848..6750299b 100644 --- a/src/modules/commerce/index.ts +++ b/src/modules/commerce/index.ts @@ -283,7 +283,7 @@ export class CommerceModule extends ModuleBase { const { dec = 2, max = 1000, min = 1, symbol = '' } = options; if (min < 0 || max < 0) { - return `${symbol}${0.0}`; + return `${symbol}0`; } // TODO @Shinigami92 2022-11-24: https://github.com/faker-js/faker/issues/350 diff --git a/src/modules/lorem/index.ts b/src/modules/lorem/index.ts index ca71afdf..1f9ba026 100644 --- a/src/modules/lorem/index.ts +++ b/src/modules/lorem/index.ts @@ -327,7 +327,7 @@ export class LoremModule extends ModuleBase { const method = this.faker.helpers.arrayElement(methods); - return `${this[method]()}`; + return this[method](); } /** -- cgit v1.2.3