Skip to content

Commit b00744b

Browse files
committed
Fix golangci-lint 'unparam'.
1 parent 1410a63 commit b00744b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

internal/service/transfer/web_app_customization.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,7 @@ func (r *webAppCustomizationResource) Read(ctx context.Context, request resource
137137
return
138138
}
139139

140-
response.Diagnostics.Append(flattenDescribedWebAppCustomization(ctx, out, &data)...)
141-
if response.Diagnostics.HasError() {
142-
return
143-
}
140+
flattenDescribedWebAppCustomization(ctx, out, &data)
144141

145142
response.Diagnostics.Append(response.State.Set(ctx, &data)...)
146143
}
@@ -275,9 +272,7 @@ func expandUpdateWebAppCustomizationInput(ctx context.Context, data *webAppCusto
275272
return diags
276273
}
277274

278-
func flattenDescribedWebAppCustomization(ctx context.Context, apiObject *awstypes.DescribedWebAppCustomization, data *webAppCustomizationResourceModel) diag.Diagnostics { // nosemgrep:ci.semgrep.framework.manual-flattener-functions
279-
var diags diag.Diagnostics
280-
275+
func flattenDescribedWebAppCustomization(ctx context.Context, apiObject *awstypes.DescribedWebAppCustomization, data *webAppCustomizationResourceModel) { // nosemgrep:ci.semgrep.framework.manual-flattener-functions
281276
if v := apiObject.FaviconFile; v != nil {
282277
data.FaviconFile = fwflex.StringToFramework(ctx, aws.String(inttypes.Base64Encode(v)))
283278
} else {
@@ -290,6 +285,4 @@ func flattenDescribedWebAppCustomization(ctx context.Context, apiObject *awstype
290285
}
291286
data.Title = fwflex.StringToFramework(ctx, apiObject.Title)
292287
data.WebAppID = fwflex.StringToFramework(ctx, apiObject.WebAppId)
293-
294-
return diags
295288
}

0 commit comments

Comments
 (0)