Skip to content

Commit

Permalink
config: cleanup double assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
potsables committed Mar 9, 2019
1 parent c3f48ca commit 1b249a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func (t *TemporalConfig) setDefaults() {
t.LogDir = "/var/log/temporal/"
}
if len(t.API.Connection.CORS.AllowedOrigin) == 0 {
origins := []string{"temporal.cloud", "backup.temporal.cloud"}
t.API.Connection.CORS.AllowedOrigin = origins
t.API.Connection.CORS.AllowedOrigin = []string{"temporal.cloud", "backup.temporal.cloud"}
}
}

0 comments on commit 1b249a5

Please sign in to comment.