Skip to content

Commit

Permalink
ref: ProjectResourceModel.Fill
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyuan committed Oct 31, 2024
1 parent aebf2d5 commit c47ee3f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions internal/provider/resource_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit c47ee3f

Please sign in to comment.