aboutsummaryrefslogtreecommitdiff
path: root/fs.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 00:51:47 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-03 00:51:47 -0500
commit0e6b7378a564bb51b3a4289059e80fe9e3c6545b (patch)
tree9cde120cfc7a7acea9c685f15601dd41d42bd9f1 /fs.go
parent287d029975b7718109f81b480079f375f7d8700a (diff)
downloadplanr-0e6b7378a564bb51b3a4289059e80fe9e3c6545b.tar.xz
planr-0e6b7378a564bb51b3a4289059e80fe9e3c6545b.zip
BUG: Fix decoding when no defaults is present
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,