Skip to content

Commit 21c02bc

Browse files
committed
[JENKINS-75361] Use local variable instead of calling getter twice
1 parent e3470a1 commit 21c02bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/LoggingInvoker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private Object findReceiver(Object o) {
175175
}
176176
// TODO: Groovy will actually try the delegate first and then the owner if needed, but it is
177177
// difficult for us to know what will happen in advance.
178-
yield findReceiver(c.getDelegate());
178+
yield findReceiver(delegate);
179179
}
180180
default ->
181181
// TODO: Groovy will actually try the owner first and then the delegate if needed.

0 commit comments

Comments
 (0)