Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelsz-rb committed Oct 19, 2023
1 parent 3452d8b commit 842deb6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions rollbar/resource_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,20 +218,15 @@ func resourceProjectRead(ctx context.Context, d *schema.ResourceData, m interfac
var mProj map[string]interface{}
mustDecodeMapStructure(proj, &mProj)
for k, v := range mProj {
if k == "id" {
continue
}
if k == settingsData {
if k == "id" || k == settingsData {
continue
}
mustSet(d, k, v)
}

for k, v := range mProj[settingsData].(map[string]interface{}) {
if k == projectTimezone && v == timezoneDefault {
continue
}
if k == projectTimeFormat && v == timeFormatDefault {
if (k == projectTimezone && v == timezoneDefault) ||
(k == projectTimeFormat && v == timeFormatDefault) {
continue
}
mustSet(d, k, v)
Expand Down

0 comments on commit 842deb6

Please sign in to comment.