summaryrefslogtreecommitdiff
path: root/fs.go
diff options
context:
space:
mode:
Diffstat (limited to 'fs.go')
-rw-r--r--fs.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs.go b/fs.go
index ffc5f05..575517c 100644
--- a/fs.go
+++ b/fs.go
@@ -141,7 +141,9 @@ func collectFromDir(
log.Fatalf("Error encountered in %s: %v", child, config)
}
- config.Inherit(*defaults)
+ if defaults != nil {
+ config.Inherit(*defaults)
+ }
tc := TestCase {
Path: child,