Skip to content

Commit bbcd692

Browse files
committed
Using nil slices
1 parent 8f1877e commit bbcd692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/packages/assets.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func loadElasticsearchAssets(pkgRootPath string) ([]Asset, error) {
9292
return nil, errors.Wrap(err, "could not read data stream manifest file paths")
9393
}
9494

95-
assets := make([]Asset, 0)
95+
var assets []Asset
9696
for _, dsManifestPath := range dataStreamManifestPaths {
9797
dsManifest, err := ReadDataStreamManifest(dsManifestPath)
9898
if err != nil {
@@ -140,7 +140,7 @@ func loadFileBasedAssets(kibanaAssetsFolderPath string, assetType AssetType) ([]
140140
return nil, errors.Wrapf(err, "could not read %s files", assetType)
141141
}
142142

143-
assets := make([]Asset, 0)
143+
var assets []Asset
144144
for _, f := range files {
145145
if f.IsDir() {
146146
continue

0 commit comments

Comments
 (0)