Skip to content

Commit b1d15ab

Browse files
committed
Simplify parameter handling in getExistingStepSubfolders
1 parent d90a6f8 commit b1d15ab

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/bdd_widget_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ class FeatureBuilder implements Builder {
3333
final feature = FeatureFile(
3434
featureDir: featureDir,
3535
package: inputId.package,
36-
existingSteps:
37-
getExistingStepSubfolders(featureDir, options.stepFolder, options),
36+
existingSteps: getExistingStepSubfolders(featureDir, options),
3837
input: contents,
3938
generatorOptions: options,
4039
includeIntegrationTestImport: isIntegrationTest,

lib/src/existing_steps.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import 'package:path/path.dart' as p;
66
/// key - step filename, value - path for import (ex: {'i_have_a_step.dart': 'step/common'})
77
Map<String, String> getExistingStepSubfolders(
88
String featureDir,
9-
String stepFolderName,
109
GeneratorOptions options,
1110
) {
11+
final stepFolderName = options.stepFolder;
1212
final stepFolder = p.join(
1313
stepFolderName.startsWith('./') || stepFolderName.startsWith('../')
1414
? featureDir

0 commit comments

Comments
 (0)