aboutsummaryrefslogtreecommitdiff
path: root/src/git.ts
diff options
context:
space:
mode:
authorPiotr Kuczynski <[email protected]>2022-04-19 22:38:17 +0200
committerGitHub <[email protected]>2022-04-19 22:38:17 +0200
commit00b9d4be4bff3b3f64edf163768af71c99bceed1 (patch)
tree0fa0e76b036c11c38eea251a8c4d371875810eed /src/git.ts
parentcb746cb466743a219c0e3845edb29527a06b0a35 (diff)
downloadfaker-00b9d4be4bff3b3f64edf163768af71c99bceed1.tar.xz
faker-00b9d4be4bff3b3f64edf163768af71c99bceed1.zip
chore: prefer string templates over string concatenation (#732)
Diffstat (limited to 'src/git.ts')
-rw-r--r--src/git.ts2
1 files changed, 1 insertions, 1 deletions
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}`;
}
/**