Skip to content

Commit 5299ea5

Browse files
committed
Fix lint checks
Signed-off-by: abdullah1308 <abdullahrafi.1308@gmail.com>
1 parent 030f05d commit 5299ea5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/meshmodel/core/v1alpha1/component.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func GetMeshModelComponents(db *database.Handler, f ComponentFilter) (c []Compon
8888
}
8989

9090
countUniqueComponents := func(components []componentDefinitionWithModel) int {
91-
var set map[string]struct{}
91+
set := make(map[string]struct{})
9292
for _, model := range components {
9393
key := model.ComponentDefinitionDB.Kind + "@" + model.ModelDB.Name
9494
if _, ok := set[key]; !ok {

models/meshmodel/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (rm *RegistryManager) GetModels(db *database.Handler, f types.Filter) ([]v1
192192
}
193193

194194
countUniqueModels := func(models []modelWithCategories) int {
195-
var set map[string]struct{}
195+
set := make(map[string]struct{})
196196
for _, model := range models {
197197
if _, ok := set[model.ModelDB.Name]; !ok {
198198
set[model.ModelDB.Name] = struct{}{}

0 commit comments

Comments
 (0)