From e27340c02c350139a65b47b464bb1e08a334fef6 Mon Sep 17 00:00:00 2001 From: tgolang Date: Thu, 14 Mar 2024 16:54:56 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: tgolang --- commands/contract/push.go | 4 ++-- commands/push.go | 4 ++-- rest/payloads/generated/actions/structs.conjure.go | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/commands/contract/push.go b/commands/contract/push.go index b20c5b4..b21626c 100644 --- a/commands/contract/push.go +++ b/commands/contract/push.go @@ -115,7 +115,7 @@ func uploadContracts(rest *rest.Rest) error { if numberOfContractsWithANetwork == 0 { if commands.DeploymentProvider.GetProviderName() == providers.OpenZeppelinDeploymentProvider { pushErrors[projectSlug] = userError.NewUserError( - fmt.Errorf("no contracts with a netowrk found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()), + fmt.Errorf("no contracts with a network found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()), commands.Colorizer.Sprintf("No migrated contracts detected in build directory: %s. This can happen when no contracts have been migrated yet.\n"+ "There is currently an issue with exporting networks for regular contracts.\nThe OpenZeppelin team has come up with a workaround,"+ "so make sure you run %s before running %s\n"+ @@ -129,7 +129,7 @@ func uploadContracts(rest *rest.Rest) error { continue } pushErrors[projectSlug] = userError.NewUserError( - fmt.Errorf("no contracts with a netowrk found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()), + fmt.Errorf("no contracts with a network found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()), commands.Colorizer.Sprintf("No migrated contracts detected in build directory: %s. This can happen when no contracts have been migrated yet.", commands.Colorizer.Bold(commands.Colorizer.Red(providerConfig.AbsoluteBuildDirectoryPath())), ), diff --git a/commands/push.go b/commands/push.go index ca5439f..4d845ec 100644 --- a/commands/push.go +++ b/commands/push.go @@ -125,7 +125,7 @@ func uploadContracts(rest *rest.Rest) error { if numberOfContractsWithANetwork == 0 { if DeploymentProvider.GetProviderName() == providers.OpenZeppelinDeploymentProvider { pushErrors[projectSlug] = userError.NewUserError( - fmt.Errorf("no contracts with a netowrk found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()), + fmt.Errorf("no contracts with a network found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()), Colorizer.Sprintf("No migrated contracts detected in build directory: %s. This can happen when no contracts have been migrated yet.\n"+ "There is currently an issue with exporting networks for regular contracts.\nThe OpenZeppelin team has come up with a workaround,"+ "so make sure you run %s before running %s\n"+ @@ -139,7 +139,7 @@ func uploadContracts(rest *rest.Rest) error { continue } pushErrors[projectSlug] = userError.NewUserError( - fmt.Errorf("no contracts with a netowrk found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()), + fmt.Errorf("no contracts with a network found in build dir: %s", providerConfig.AbsoluteBuildDirectoryPath()), Colorizer.Sprintf("No migrated contracts detected in build directory: %s. This can happen when no contracts have been migrated yet.", Colorizer.Bold(Colorizer.Red(providerConfig.AbsoluteBuildDirectoryPath())), ), diff --git a/rest/payloads/generated/actions/structs.conjure.go b/rest/payloads/generated/actions/structs.conjure.go index ada0ad8..3c513cd 100644 --- a/rest/payloads/generated/actions/structs.conjure.go +++ b/rest/payloads/generated/actions/structs.conjure.go @@ -1098,8 +1098,8 @@ func (o *PublishResponse) UnmarshalYAML(unmarshal func(interface{}) error) error } type ResumeRequest struct { - // Action ids to resume. IF EMTPY, ALL ACTIONS IN PROJECT WILL BE RESUMED. - Actions []string `json:"actions" conjure-docs:"Action ids to resume. IF EMTPY, ALL ACTIONS IN PROJECT WILL BE RESUMED."` + // Action ids to resume. IF EMPTY, ALL ACTIONS IN PROJECT WILL BE RESUMED. + Actions []string `json:"actions" conjure-docs:"Action ids to resume. IF EMPTY, ALL ACTIONS IN PROJECT WILL BE RESUMED."` } func (o ResumeRequest) MarshalJSON() ([]byte, error) { @@ -1205,8 +1205,8 @@ func (o *StateChangedFilter) UnmarshalYAML(unmarshal func(interface{}) error) er } type StopRequest struct { - // Action ids to stop. IF EMTPY, ALL ACTIONS IN PROJECT WILL BE STOPPED. - Actions []string `json:"actions" conjure-docs:"Action ids to stop. IF EMTPY, ALL ACTIONS IN PROJECT WILL BE STOPPED."` + // Action ids to stop. IF EMPTY, ALL ACTIONS IN PROJECT WILL BE STOPPED. + Actions []string `json:"actions" conjure-docs:"Action ids to stop. IF EMPTY, ALL ACTIONS IN PROJECT WILL BE STOPPED."` } func (o StopRequest) MarshalJSON() ([]byte, error) {