Skip to content

Commit 2026e9b

Browse files
authored
Merge branch 'main' into return-fs-err-no-exits
2 parents e67f961 + c8daf1d commit 2026e9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cdi/spec-dirs.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ var (
4343

4444
// WithSpecDirs returns an option to override the CDI Spec directories.
4545
func WithSpecDirs(dirs ...string) Option {
46+
// If no spec dirs are specified use the default spec dirs.
47+
if len(dirs) == 0 {
48+
return WithSpecDirs(DefaultSpecDirs...)
49+
}
4650
return func(c *Cache) {
4751
specDirs := make([]string, len(dirs))
4852
for i, dir := range dirs {

0 commit comments

Comments
 (0)