style(webassets): fix golangci-lint complaining

This commit is contained in:
Jack Westbrook
2025-03-03 09:52:53 +01:00
parent 5e8f0c6f52
commit 80ea8a0901
+1 -3
View File
@@ -199,9 +199,7 @@ func readWebAssets(r io.Reader) (*dtos.EntryPointAssets, error) {
// return nil, fmt.Errorf("missing swagger entry, try running `yarn build`")
// }
var entryPointJSAssets []dtos.EntryPointAsset
entryPointJSAssets = append([]dtos.EntryPointAsset{*trustedTypePolicyAsset}, otherJSAssets...)
var entryPointJSAssets = append([]dtos.EntryPointAsset{*trustedTypePolicyAsset}, otherJSAssets...)
if entryPointJSAssets == nil {
return nil, fmt.Errorf("no entrypoints found in assets manifest, try running `yarn build`")