Apply suggestions from code review

Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
Tony Torralba
2021-10-05 09:40:22 +02:00
parent 3323f7ab1a
commit a86cbd884e
4 changed files with 16 additions and 12 deletions

View File

@@ -15,9 +15,10 @@ class InsecureJavaMailTest extends InlineExpectationsTest {
value = ""
|
ma.getMethod() instanceof MailSessionGetInstanceMethod and
isInsecureMailPropertyConfig(ma.getArgument(0))
isInsecureMailPropertyConfig(ma.getArgument(0).(VarAccess).getVariable())
or
enablesEmailSsl(ma) and not hasSslCertificateCheck(ma.getQualifier())
enablesEmailSsl(ma) and
not hasSslCertificateCheck(ma.getQualifier().(VarAccess).getVariable())
)
}
}