Skip to content

Commit

Permalink
Fix unused variable bug in Map() (#24)
Browse files Browse the repository at this point in the history
In Map(), we create a copy of the `env` map to return to the user, but we end up returning our internal map instead. This fixes that bug and returns our copied map to the user.
  • Loading branch information
DuskEagle authored and markbates committed Mar 18, 2019
1 parent 13a2452 commit 1e6702b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envy.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func Map() map[string]string {
for k, v := range env {
cp[k] = v
}
return env
return cp
}

// Temp makes a copy of the values and allows operation on
Expand Down

0 comments on commit 1e6702b

Please sign in to comment.