Skip to content

Commit

Permalink
Restore original Clone() type conversion behavvior.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacknz committed Jul 5, 2022
1 parent 2ad32b7 commit 97b5bb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

## [0.2.9]

### Changed

- Fix breaking change to mapstr type conversions during Clone().

## [0.2.8]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion mapstr/mapstr.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (m M) Clone() M {
result := make(M, len(m))

for k := range m {
if innerMap, ok := (m[k]).(M); ok {
if innerMap, ok := tryToMapStr(m[k]); ok {
result[k] = innerMap.Clone()
} else {
result[k] = m[k]
Expand Down

0 comments on commit 97b5bb0

Please sign in to comment.