Skip to content

Commit 085f777

Browse files
committed
update GetVersionOptions to non-functional option
1 parent 4ba0717 commit 085f777

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/internal_workflow_testsuite.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,10 +1948,10 @@ func (env *testWorkflowEnvironmentImpl) GetVersion(changeID string, minSupported
19481948
return version
19491949
}
19501950

1951-
// Apply options to determine which version to use
1952-
options := &GetVersionOptions{}
1953-
for _, opt := range opts {
1954-
opt(options)
1951+
// Use the first option if they're present
1952+
var options GetVersionOptions
1953+
if len(opts) > 0 {
1954+
options = opts[0]
19551955
}
19561956

19571957
// Determine the version to use based on the options provided

0 commit comments

Comments
 (0)