diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 372340c..1a5073b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,4 +20,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.58.2 \ No newline at end of file + version: v1.58.2 + args: --timeout=10m \ No newline at end of file diff --git a/client/resourcehierarchy.go b/client/resourcehierarchy.go index 746a781..e4c3ecc 100644 --- a/client/resourcehierarchy.go +++ b/client/resourcehierarchy.go @@ -237,7 +237,7 @@ func NewResourceHierarchy(ctx context.Context, logger zerolog.Logger, sdk *ycsdk (items[i].Cloud < items[j].Cloud) && (items[i].Folder < items[j].Folder) }) - slices.Compact(items) + items = slices.Compact(items) return &ResourceHierarchy{ items: items,