From 00b9d4be4bff3b3f64edf163768af71c99bceed1 Mon Sep 17 00:00:00 2001 From: Piotr Kuczynski Date: Tue, 19 Apr 2022 22:38:17 +0200 Subject: chore: prefer string templates over string concatenation (#732) --- src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/git.ts') diff --git a/src/git.ts b/src/git.ts index 6c82e48d..94144043 100644 --- a/src/git.ts +++ b/src/git.ts @@ -42,7 +42,7 @@ export class Git { branch(): string { const noun = this.faker.hacker.noun().replace(' ', '-'); const verb = this.faker.hacker.verb().replace(' ', '-'); - return noun + '-' + verb; + return `${noun}-${verb}`; } /** -- cgit v1.2.3