Skip to content

Commit

Permalink
Use nullish coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodesser-Igalia committed Mar 7, 2024
1 parent 7e31164 commit 40eb301
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@
];

for (const testData of nonLowerCaseTests) {
const attributeNamespace = ("attributeNamespace" in testData) ?
testData.attributeNamespace : null;
const attributeNamespace = testData.attributeNamespace ?? null;

test(t => {
assert_element_accepts_non_trusted_type_set_ns(testData.element, testData.attribute, "v",
Expand Down

0 comments on commit 40eb301

Please sign in to comment.