Skip to content

Commit

Permalink
Reduce string constant duplication
Browse files Browse the repository at this point in the history
Newer versions of goconst detect more instances of string duplication so
refactor the offending strings to avoid an error.

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Oct 25, 2023
1 parent 6c885f8 commit 36036e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/subctl/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions cmd/subctl/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 36036e1

Please sign in to comment.