Skip to content

Commit a306a80

Browse files
committed
Remove redundant condition
1 parent b68d2be commit a306a80

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

l10n_CM/run_l10n.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@
1313
valid_flags = {"--run-headless", "-n", "--reruns", "--fx-executable", "--ci"}
1414
flag_with_parameter = {"-n", "--reruns"}
1515
valid_region = {"US", "CA", "DE", "FR"}
16-
valid_sites = {"demo", "amazon", "walmart", "mediamarkt", "lowes", "etsy", "calvinklein", "bestbuy"}
16+
valid_sites = {
17+
"demo",
18+
"amazon",
19+
"walmart",
20+
"mediamarkt",
21+
"lowes",
22+
"etsy",
23+
"calvinklein",
24+
"bestbuy",
25+
}
1726
live_sites = []
1827

1928
LOCALHOST = "127.0.0.1"

modules/page_object_autofill.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,7 @@ def verify_form_data(self, sample_data: CreditCardBase | AutofillAddressBase):
248248

249249
elif attr_name == "country":
250250
expected_value = self.util.get_country_local_translation(expected_value)
251-
if (
252-
attr_name == "expiration_month"
253-
and autofilled_field_value.isdigit()
254-
and str(expected_value).isdigit()
255-
):
251+
if attr_name == "expiration_month" and autofilled_field_value.isdigit():
256252
# Handle expiration month comparison - normalize to integers to handle leading zeros
257253
autofilled_field_value = str(int(autofilled_field_value))
258254
expected_value = str(int(expected_value))

0 commit comments

Comments
 (0)