Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #339 from alkar/buildschema-do-not-modify
Browse files Browse the repository at this point in the history
Changes buildSchema to not modify its arguments
  • Loading branch information
quantumew authored Nov 19, 2019
2 parents 5e9b6bf + adafb82 commit ef0f1d8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions okta/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ import (
)

func buildSchema(s, t map[string]*schema.Schema) map[string]*schema.Schema {
r := map[string]*schema.Schema{}
for key, val := range t {
r[key] = val
}
for key, val := range s {
t[key] = val
r[key] = val
}

return t
return r
}

// camel cased strings from okta responses become underscore separated to match
Expand Down

0 comments on commit ef0f1d8

Please sign in to comment.