diff --git a/internal/provider/resource_project.go b/internal/provider/resource_project.go index 0fb81e3e..307a917a 100644 --- a/internal/provider/resource_project.go +++ b/internal/provider/resource_project.go @@ -126,19 +126,13 @@ func (data *ProjectResourceModel) Fill(organization string, project sentry.Proje data.InternalId = types.StringValue(project.ID) - if data.DigestsMinDelay.IsNull() { - data.DigestsMinDelay = types.Int64Null() - } else { + if !data.DigestsMinDelay.IsNull() { data.DigestsMinDelay = types.Int64Value(int64(project.DigestsMinDelay)) } - if data.DigestsMaxDelay.IsNull() { - data.DigestsMaxDelay = types.Int64Null() - } else { + if !data.DigestsMaxDelay.IsNull() { data.DigestsMaxDelay = types.Int64Value(int64(project.DigestsMaxDelay)) } - if data.ResolveAge.IsNull() { - data.ResolveAge = types.Int64Null() - } else { + if !data.ResolveAge.IsNull() { data.ResolveAge = types.Int64Value(int64(project.ResolveAge)) }