Skip to content

Commit 2a38f3a

Browse files
committed
[refactor] some minor cleanup left-overs
1 parent 1ee9f7b commit 2a38f3a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/org/jruby/ext/openssl/SSLSocket.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,11 @@ private IRubyObject fallback_verify_mode(final ThreadContext context) {
428428

429429
@JRubyMethod
430430
public IRubyObject verify_result(final ThreadContext context) {
431-
final Ruby runtime = context.runtime;
432431
if (engine == null) {
433-
runtime.getWarnings().warn("SSL session is not started yet.");
434-
return runtime.getNil();
432+
context.runtime.getWarnings().warn("SSL session is not started yet.");
433+
return context.nil;
435434
}
436-
return runtime.newFixnum(verifyResult);
435+
return context.runtime.newFixnum(verifyResult);
437436
}
438437

439438
// This select impl is a copy of RubyThread.select, then blockingLock is

0 commit comments

Comments
 (0)