From e036d2c804ae34b63974c5f0093ad678c5550bf6 Mon Sep 17 00:00:00 2001 From: dbeltukov Date: Wed, 22 May 2024 20:16:43 +0300 Subject: [PATCH] fix(ci): increase timeout for golangci-lint 32d298106c4608c6c41daef125f0f1390203186b --- .github/workflows/lint.yml | 3 ++- client/resourcehierarchy.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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,