aboutsummaryrefslogtreecommitdiff
path: root/src/modules/location
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/location')
-rw-r--r--src/modules/location/index.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts
index a4238241..a53c11d7 100644
--- a/src/modules/location/index.ts
+++ b/src/modules/location/index.ts
@@ -75,10 +75,7 @@ export class LocationModule {
* @since 8.0.0
*/
city(): string {
- const pattern = this.faker.helpers.arrayElement(
- this.faker.definitions.location.city
- );
- return this.faker.helpers.fake(pattern);
+ return this.faker.helpers.fake(this.faker.definitions.location.city);
}
/**
@@ -121,10 +118,7 @@ export class LocationModule {
* @since 8.0.0
*/
street(): string {
- const format = this.faker.helpers.arrayElement(
- this.faker.definitions.location.street
- );
- return this.faker.helpers.fake(format);
+ return this.faker.helpers.fake(this.faker.definitions.location.street);
}
/**