Skip to content

Commit 53d1f09

Browse files
committed
fixup! fetch current container runtime config through the command line
1 parent d4e51b6 commit 53d1f09

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/config/toml.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,7 @@ func (t *Toml) Get(key string) interface{} {
172172

173173
// GetDefault returns the value for the specified key and falls back to the default value if the Get call fails
174174
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
175+
return (*toml.Tree)(t).GetDefault(key, def)
180176
}
181177

182178
// Set sets the specified key to the specified value in the TOML config.

0 commit comments

Comments
 (0)