From 22ae309ed1e157560c9b9202b1e3391c233311e7 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Fri, 3 Nov 2023 17:56:58 +0530 Subject: [PATCH] golangci-lint fix --- golangci-lint-config.yaml | 1 + internal/resources/resource_router_route.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/golangci-lint-config.yaml b/golangci-lint-config.yaml index c9aceb6b..bb1abde4 100644 --- a/golangci-lint-config.yaml +++ b/golangci-lint-config.yaml @@ -6,6 +6,7 @@ run: skip-dirs: - vendor build-tags: acceptance + modules-download-mode: readonly linters-settings: dupl: diff --git a/internal/resources/resource_router_route.go b/internal/resources/resource_router_route.go index c2b97fc5..33f9cfe9 100644 --- a/internal/resources/resource_router_route.go +++ b/internal/resources/resource_router_route.go @@ -115,7 +115,7 @@ func routerRouteReadContext(ctx context.Context, rd *schema.ResourceData, meta i isDeprecated := data.GetBool("is_deprecated") if isDeprecated { return diag.Diagnostics{ - { + diag.Diagnostic{ Severity: diag.Warning, Summary: "Parent router is deleted. This resource is deprecated!!!", },