From 330e4e6ec427328175605ef3c4bd5e919c58091f Mon Sep 17 00:00:00 2001 From: "simeon.pe" Date: Fri, 2 Dec 2022 10:11:20 +0200 Subject: [PATCH] remove reduntant type --- kibana/resource_reader.go | 2 -- vendor/github.com/ewilde/go-kibana/dashboard.go | 1 - 2 files changed, 3 deletions(-) diff --git a/kibana/resource_reader.go b/kibana/resource_reader.go index c32ef1e..fea3c70 100644 --- a/kibana/resource_reader.go +++ b/kibana/resource_reader.go @@ -115,8 +115,6 @@ func readDashboardReferencesFromInterface(val interface{}) []*kibana.DashboardRe dashboardRef.Type = kibana.DashboardReferencesTypeTag case kibana.DashboardReferencesTypeLens.String(): dashboardRef.Type = kibana.DashboardReferencesTypeLens - case kibana.DashboardReferencesTypeVisualization.String(): - dashboardRef.Type = kibana.DashboardReferencesTypeVisualization case kibana.DashboardReferencesTypeDashboard.String(): dashboadRef.Type = kibana.DashboardReferencesTypeDashboard } diff --git a/vendor/github.com/ewilde/go-kibana/dashboard.go b/vendor/github.com/ewilde/go-kibana/dashboard.go index ddda6f4..61d0af6 100644 --- a/vendor/github.com/ewilde/go-kibana/dashboard.go +++ b/vendor/github.com/ewilde/go-kibana/dashboard.go @@ -16,7 +16,6 @@ const ( DashboardReferencesTypeTag dashboardReferencesType = "tag" DashboardReferencesTypeLens dashboardReferencesType = "lens" DashboardReferencesTypeDashboard dashboardReferencesType = "dashboard" - DashboardReferencesTypeVisualization dashboardReferencesType = "visualization" ) type dashboardReferencesType string