Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 19, 2024
1 parent d60362a commit 76307c2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public abstract class AbstractReporter implements ConcurrentEventListener {
private static final String HOOK_ = "Hook: ";
private static final String GET_LOCATION_METHOD_NAME = "getLocation";
private static final String METHOD_OPENING_BRACKET = "(";
private static final String DEFINITION_MATCH_FIELD_NAME = "definitionMatch";
private static final String STEP_DEFINITION_FIELD_NAME = "stepDefinition";
private static final String DOCSTRING_DECORATOR = "\n\"\"\"\n";

Expand Down Expand Up @@ -879,7 +878,7 @@ protected Set<ItemAttributesRQ> getAttributes(@Nonnull TestStep testStep) {
protected String getCodeRef(@Nonnull TestStep testStep) {
String cucumberLocation = testStep.getCodeLocation();
try {
Object stepDefinitionMatch = Accessible.on(testStep).field(DEFINITION_MATCH_FIELD_NAME).getValue();
Object stepDefinitionMatch = Utils.getDefinitionMatch(testStep);
if (stepDefinitionMatch != null) {
Object javaStepDefinition = Accessible.on(stepDefinitionMatch).field(STEP_DEFINITION_FIELD_NAME).getValue();
if (javaStepDefinition != null) {
Expand Down

0 comments on commit 76307c2

Please sign in to comment.