Skip to content

Commit acde683

Browse files
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 678734d commit acde683

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cloudsmith/data_source_oidc.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ func dataSourceOidcRead(d *schema.ResourceData, m interface{}) error {
4343
if err != nil {
4444
return fmt.Errorf("error retrieving dynamic mappings: %w", err)
4545
}
46-
d.Set("dynamic_mappings", convertMappingsToSetElems(apiMappings))
46+
if err := d.Set("dynamic_mappings", convertMappingsToSetElems(apiMappings)); err != nil {
47+
return fmt.Errorf("error setting dynamic_mappings: %w", err)
48+
}
4749

4850
d.SetId(fmt.Sprintf("%s.%s", namespace, slugPerm))
4951

0 commit comments

Comments
 (0)