Skip to content

Commit

Permalink
fix: additional code cleanup for #2902
Browse files Browse the repository at this point in the history
  • Loading branch information
U117293 authored and U117293 committed Nov 14, 2024
1 parent 411611b commit 7e5f708
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,8 @@ void prepareGlue(Locale locale) throws DuplicateStepDefinitionException {
stepTypeRegistry.defineParameterType(parameterType);
emitParameterTypeDefined(ptd);
});

dataTableTypeDefinitions.forEach(dtd -> {
stepTypeRegistry.defineDataTableType(dtd.dataTableType());
});

docStringTypeDefinitions.forEach(dtd -> {
stepTypeRegistry.defineDocStringType(dtd.docStringType());
});
dataTableTypeDefinitions.forEach(dtd -> stepTypeRegistry.defineDataTableType(dtd.dataTableType()));
docStringTypeDefinitions.forEach(dtd -> stepTypeRegistry.defineDocStringType(dtd.docStringType()));
}

if (defaultParameterTransformers.size() == 1) {
Expand Down Expand Up @@ -487,11 +481,9 @@ void removeScenarioScopedGlue() {
dirty |= removeScenarioScopedGlue(defaultParameterTransformers);
dirty |= removeScenarioScopedGlue(defaultDataTableEntryTransformers);
dirty |= removeScenarioScopedGlue(defaultDataTableCellTransformers);

if (dirty) {
stepDefinitionsByPattern.clear();
}

}

private boolean removeScenarioScopedGlue(Iterable<?> glues) {
Expand Down

0 comments on commit 7e5f708

Please sign in to comment.