Skip to content

Commit

Permalink
docs: Fix missing return value on custom-types.mdx (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
mila411 authored Jun 13, 2023
1 parent 532797d commit 8cfc161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/plugin/framework/handling-data/custom-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (v CustomStringValue) StringSemanticEquals(ctx context.Context, newValuable
"Got Value Type: "+fmt.Sprintf("%T", newValuable),
)

return
return false, diags
}

// Skipping error checking if CustomStringValue already implemented RFC3339 validation
Expand All @@ -281,7 +281,7 @@ func (v CustomStringValue) StringSemanticEquals(ctx context.Context, newValuable
newTime, _ := time.Parse(time.RFC3339, newValue.ValueString())

// If the times are equivalent, keep the prior value
return priorTime.Equal(newTime)
return priorTime.Equal(newTime), diags
}
```

Expand Down

0 comments on commit 8cfc161

Please sign in to comment.