-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When calling `StringMap`, or `StringsMap`, and the `ko.Get()` returns the value as expected, e.g. `map[string]string` for `StringMap`, the type assertion for `map[string]interface{}` does not match. This causes it to return an empty map even when there are actual values. This commit addresses this by simply returning a copy if the type assertion matches what we're supposed to return.
- Loading branch information
Showing
2 changed files
with
84 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters