Skip to content

Commit 12630eb

Browse files
committed
Forgot that it is no longer necessary to introduce variables from body lambdas
1 parent 761a370 commit 12630eb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin/src/test/java/org/jenkinsci/plugins/workflow/testMetaStep/CurveMetaStep.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public class CurveMetaStep extends Step {
4343
}
4444

4545
@Override public StepExecution start(StepContext context) throws Exception {
46-
String description = curve.getDescription();
47-
return StepExecutions.block(context, (c, invoker) -> c.get(TaskListener.class).getLogger().println("wrapping in a " + description));
46+
return StepExecutions.block(context, (c, invoker) -> c.get(TaskListener.class).getLogger().println("wrapping in a " + curve.getDescription()));
4847
}
4948

5049
@Extension public static class DescriptorImpl extends StepDescriptor {

0 commit comments

Comments
 (0)