Skip to content

Commit

Permalink
Merge pull request #2563 from testwill/delete_code
Browse files Browse the repository at this point in the history
chore: unnecessary code
  • Loading branch information
AkihiroSuda committed Oct 12, 2023
2 parents ce5dae5 + ff0fa84 commit 80a303b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions cmd/nerdctl/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ func builderDebugAction(cmd *cobra.Command, args []string) error {
return err
}
buildgArgs := []string{"debug"}
if err != nil {
return err
} else if globalOptions.Debug {
if globalOptions.Debug {
buildgArgs = append([]string{"--debug"}, buildgArgs...)
}

Expand Down
3 changes: 0 additions & 3 deletions cmd/nerdctl/builder_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ func processBuildCommandFlag(cmd *cobra.Command, args []string) (types.BuilderBu
if buildContext == "-" || strings.Contains(buildContext, "://") {
return types.BuilderBuildOptions{}, fmt.Errorf("unsupported build context: %q", buildContext)
}
if err != nil {
return types.BuilderBuildOptions{}, err
}
output, err := cmd.Flags().GetString("output")
if err != nil {
return types.BuilderBuildOptions{}, err
Expand Down

0 comments on commit 80a303b

Please sign in to comment.