Skip to content

Commit

Permalink
fix: make modspec for WithRunModSpec into optional
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Nov 8, 2024
1 parent 70859ab commit feb30c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type RunOption func(*RunOptions) error
func WithRunModSpec(modSpec *downloader.ModSpec) RunOption {
return func(ro *RunOptions) error {
if modSpec == nil {
return errors.New("modSpec cannot be nil")
return nil
}
if ro.Sources == nil {
ro.Sources = make([]*downloader.Source, 0)
Expand Down

0 comments on commit feb30c8

Please sign in to comment.