We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e51b6 commit 53d1f09Copy full SHA for 53d1f09
internal/config/toml.go
@@ -172,11 +172,7 @@ func (t *Toml) Get(key string) interface{} {
172
173
// GetDefault returns the value for the specified key and falls back to the default value if the Get call fails
174
func (t *Toml) GetDefault(key string, def interface{}) interface{} {
175
- val := t.Get(key)
176
- if val == nil {
177
- return def
178
- }
179
- return val
+ return (*toml.Tree)(t).GetDefault(key, def)
180
}
181
182
// Set sets the specified key to the specified value in the TOML config.
0 commit comments