Skip to content

Commit e4dce73

Browse files
committed
remove redundant if/none
1 parent 58a0a61 commit e4dce73

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cpp/ql/lib/experimental/quantum/OpenSSL/Operations/OpenSSLOperationBase.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ abstract class EVPOperation extends OpenSSLOperation {
116116
/**
117117
* Overwrite with an explicitly specified algorithm or leave base implementation to find it in the initialization call.
118118
*/
119-
override Expr getAlgorithmArg() {
120-
if exists(this.getInitCall()) then result = this.getInitCall().getAlgorithmArg() else none()
121-
}
119+
override Expr getAlgorithmArg() { result = this.getInitCall().getAlgorithmArg() }
122120

123121
/**
124122
* Finds the initialization call, may be none.

0 commit comments

Comments
 (0)