File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -154,8 +154,6 @@ export class Finance {
154
154
* @method faker.finance.currencyCode
155
155
*/
156
156
currencyCode ( ) : string {
157
- // TODO @Shinigami 92 2022-01-14: missing second parameter
158
- // @ts -expect-error
159
157
return this . faker . random . objectElement (
160
158
this . faker . definitions . finance . currency
161
159
) [ 'code' ] ;
@@ -179,15 +177,11 @@ export class Finance {
179
177
* @method faker.finance.currencySymbol
180
178
*/
181
179
currencySymbol ( ) : string {
182
- let symbol ;
183
-
180
+ let symbol : string ;
184
181
while ( ! symbol ) {
185
- symbol =
186
- // TODO @Shinigami 92 2022-01-14: missing second parameter
187
- // @ts -expect-error
188
- this . faker . random . objectElement (
189
- this . faker . definitions . finance . currency
190
- ) [ 'symbol' ] ;
182
+ symbol = this . faker . random . objectElement (
183
+ this . faker . definitions . finance . currency
184
+ ) [ 'symbol' ] ;
191
185
}
192
186
return symbol ;
193
187
}
You can’t perform that action at this time.
0 commit comments