From 842deb6c934846859970369d143f1f9f27f1190b Mon Sep 17 00:00:00 2001 From: Pawel Date: Thu, 19 Oct 2023 01:05:50 -0700 Subject: [PATCH] clean up --- rollbar/resource_project.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/rollbar/resource_project.go b/rollbar/resource_project.go index 961b592e..a550592f 100644 --- a/rollbar/resource_project.go +++ b/rollbar/resource_project.go @@ -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)