Skip to content

chore: remove repetitive words #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions commands/contract/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"+
Expand All @@ -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())),
),
Expand Down
4 changes: 2 additions & 2 deletions commands/push.go
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are the deletions for the specified lines in "commands/contract/push.go":

-					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()),
-					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()),

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I don't quite understand what you mean

Original file line number Diff line number Diff line change
Expand Up @@ -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"+
Expand All @@ -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())),
),
Expand Down
8 changes: 4 additions & 4 deletions rest/payloads/generated/actions/structs.conjure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down