Skip to content

Commit

Permalink
tidy code
Browse files Browse the repository at this point in the history
Signed-off-by: stoneshi-yunify <[email protected]>
  • Loading branch information
stoneshi-yunify committed Feb 5, 2025
1 parent 4f1530b commit 45f1a33
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kubectl-plugin/app/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func (o *updateOption) runE(cmd *cobra.Command, args []string) (err error) {
err = fmt.Errorf("failed to clone git repository '%s', error is: %v", app.gitRepo, err)
return
}
fmt.Println("git-repo-dir: ", tempDir)

// run kustomize command
if err = updateKustomization(o, path.Join(tempDir, app.directory)); err != nil {
Expand Down Expand Up @@ -209,7 +208,6 @@ func cloneGitRepo(app *application, auth transport.AuthMethod) (tempDir string,
err = fmt.Errorf("failed to create a temp directory, error is %v", err)
return
}

if _, err = git.PlainClone(tempDir, false, &git.CloneOptions{
URL: app.gitRepo,
ReferenceName: plumbing.ReferenceName(app.branch),
Expand Down

0 comments on commit 45f1a33

Please sign in to comment.