lib/data_maker/cn/address.rb in data_maker-2.3.4 vs lib/data_maker/cn/address.rb in data_maker-2.3.5
- old
+ new
@@ -74,10 +74,10 @@
def address_struct
generate
OpenStruct.new(street_address: street_address,
city: translate('city', city),
- district: translate('district', district),
+ district: (translate('district', district) unless district.nil?),
province: translate('province', province),
postal_code: postal_code
)
end