Skip to content

Commit 12b7447

Browse files
committed
payment - remove redundent check
1 parent de74230 commit 12b7447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

payment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func creditCardNumber(f *Faker, cco *CreditCardOptions) string {
108108
if cco == nil {
109109
cco = &CreditCardOptions{}
110110
}
111-
if cco.Types == nil || len(cco.Types) == 0 {
111+
if len(cco.Types) == 0 {
112112
cco.Types = data.CreditCardTypes
113113
}
114114
ccType := randomString(f, cco.Types)

0 commit comments

Comments
 (0)