mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
remove redundant if/none
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user