remove redundant if/none

This commit is contained in:
GrosQuildu
2025-06-03 15:22:25 +02:00
committed by Paweł Płatek
parent f04fa58c8b
commit eff6eb3cc2

View File

@@ -116,9 +116,7 @@ abstract class EVPOperation extends OpenSSLOperation {
/**
* Overwrite with an explicitly specified algorithm or leave base implementation to find it in the initialization call.
*/
override Expr getAlgorithmArg() {
if exists(this.getInitCall()) then result = this.getInitCall().getAlgorithmArg() else none()
}
override Expr getAlgorithmArg() { result = this.getInitCall().getAlgorithmArg() }
/**
* Finds the initialization call, may be none.