Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
artemvang committed Jun 19, 2024
1 parent 2cc2514 commit 3b39f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (o RunCreateOptions) valid() error {
if !validStringID(&o.Workspace.ID) {
return errors.New("invalid value for workspace ID")
}
if !validStringID(&o.ConfigurationVersion.ID) {
if o.ConfigurationVersion != nil && !validStringID(&o.ConfigurationVersion.ID) {
return errors.New("invalid value for configuration-version ID")
}
return nil
Expand Down

0 comments on commit 3b39f81

Please sign in to comment.