From 36036e15952c4af05ba0357a73035ab93ec0dd21 Mon Sep 17 00:00:00 2001 From: Tom Pantelis Date: Wed, 25 Oct 2023 08:35:24 -0400 Subject: [PATCH] Reduce string constant duplication Newer versions of goconst detect more instances of string duplication so refactor the offending strings to avoid an error. Signed-off-by: Tom Pantelis --- cmd/subctl/aws.go | 4 ++-- cmd/subctl/azure.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/subctl/aws.go b/cmd/subctl/aws.go index caa1530c4..400f1206c 100644 --- a/cmd/subctl/aws.go +++ b/cmd/subctl/aws.go @@ -53,8 +53,8 @@ var ( awsCleanupCmd = &cobra.Command{ Use: "aws", Short: "Clean up an AWS cloud", - Long: "This command cleans up an OpenShift installer-provisioned infrastructure (IPI) on AWS-based" + - " cloud after Submariner uninstallation.", + Long: "This command cleans up an OpenShift installer-provisioned infrastructure (IPI) on " + + "AWS-based cloud after Submariner uninstallation.", PreRunE: checkAWSFlags, Run: func(cmd *cobra.Command, args []string) { exit.OnError(cloudRestConfigProducer.RunOnSelectedContext( diff --git a/cmd/subctl/azure.go b/cmd/subctl/azure.go index c50d3dd1d..44fb7e911 100644 --- a/cmd/subctl/azure.go +++ b/cmd/subctl/azure.go @@ -52,8 +52,8 @@ var ( azureCleanupCmd = &cobra.Command{ Use: "azure", Short: "Clean up an Azure cloud", - Long: "This command cleans up an OpenShift installer-provisioned infrastructure (IPI) on Azure-based" + - " cloud after Submariner uninstallation.", + Long: "This command cleans up an OpenShift installer-provisioned infrastructure (IPI) on " + + "Azure-based cloud after Submariner uninstallation.", PreRunE: checkAzureFlags, Run: func(cmd *cobra.Command, args []string) { exit.OnError(cloudRestConfigProducer.RunOnSelectedContext(