Small simplification

This commit is contained in:
Tony Torralba
2022-12-21 09:58:13 +01:00
parent 690dd47990
commit ab73d13d8b
4 changed files with 4 additions and 20 deletions

View File

@@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
loc = node.getLocation() and loc = node.getLocation() and
el = node.toString() and el = node.toString() and
value = "" and value = "" and
( if trustedDomain(_) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
if exists(string x | trustedDomain(x))
then tag = "hasUntrustedResult"
else tag = "hasNoTrustedResult"
)
) )
} }
} }

View File

@@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
loc = node.getLocation() and loc = node.getLocation() and
el = node.toString() and el = node.toString() and
value = "" and value = "" and
( if trustedDomain(_) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
if exists(string x | trustedDomain(x))
then tag = "hasUntrustedResult"
else tag = "hasNoTrustedResult"
)
) )
} }
} }

View File

@@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
loc = node.getLocation() and loc = node.getLocation() and
el = node.toString() and el = node.toString() and
value = "" and value = "" and
( if trustedDomain(_) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
if exists(string x | trustedDomain(x))
then tag = "hasUntrustedResult"
else tag = "hasNoTrustedResult"
)
) )
} }
} }

View File

@@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
loc = node.getLocation() and loc = node.getLocation() and
el = node.toString() and el = node.toString() and
value = "" and value = "" and
( if trustedDomain(_) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
if exists(string x | trustedDomain(x))
then tag = "hasUntrustedResult"
else tag = "hasNoTrustedResult"
)
) )
} }
} }