diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-06 17:55:43 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-06 17:55:43 -0500 |
commit | 75805cd762dd552c3da5ca69a690b73ac6910e6b (patch) | |
tree | 1d03a0da78fdede9c37376ebab92f6107242f429 | |
parent | 4b842fb0d1d7f9f09a205550f4a58f894003bce5 (diff) | |
download | planr-75805cd762dd552c3da5ca69a690b73ac6910e6b.tar.xz planr-75805cd762dd552c3da5ca69a690b73ac6910e6b.zip |
Fix nulls in adapter getter method
-rw-r--r-- | rubric_config.go | 2 | ||||
-rw-r--r-- | runner.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rubric_config.go b/rubric_config.go index 322e58a..d533a7b 100644 --- a/rubric_config.go +++ b/rubric_config.go @@ -56,7 +56,7 @@ type Defaults struct { adapters_ map[string] InheritableConfig /* - The configs_ field is necessary to property + The configs_ field is necessary to properly implement the Inherit method using a common interface. */ @@ -13,7 +13,7 @@ type Runner struct { } func (r Runner) adapterCfgs() []AdapterConfig { - cgs := make([]AdapterConfig, len(r.adapters)) + cgs := make([]AdapterConfig, 0) for _, adapter := range r.adapters { cgs = append(cgs, adapter.Config()) |