Skip to content

Commit c022819

Browse files
committed
more linting
1 parent 3ff473d commit c022819

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/provider/resourceconfiguration/resource.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,14 @@ func (r *resourceConfigurationResource) Read(ctx context.Context, req resource.R
248248
}
249249
defer func() { _ = httpResponse.Body.Close() }()
250250

251-
// Handle 404
251+
// Handle 404.
252252
if httpResponse.StatusCode == 404 {
253253
tflog.Info(ctx, "Resource configuration not found", map[string]any{"configurationID": configID})
254254
resp.State.RemoveResource(ctx)
255255
return
256256
}
257257

258-
// Read the response body
258+
// Read the response body.
259259
bodyBytes, err := io.ReadAll(httpResponse.Body)
260260
if err != nil {
261261
resp.Diagnostics.AddError(
@@ -265,7 +265,7 @@ func (r *resourceConfigurationResource) Read(ctx context.Context, req resource.R
265265
return
266266
}
267267

268-
// Check for error status codes
268+
// Check for error status codes.
269269
if httpResponse.StatusCode >= 300 {
270270
resp.Diagnostics.AddError(
271271
"Error reading resource configuration",

0 commit comments

Comments
 (0)