Skip to content

Commit

Permalink
fix: remove double channel close in GitCloneCmd
Browse files Browse the repository at this point in the history
Co-Authored-By: Scott Sunarto <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and Scott Sunarto committed Dec 20, 2024
1 parent a9dd838 commit 571a638
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions common/teacmd/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ func git(args ...string) (string, error) {
}

func GitCloneCmd(url string, targetDir string, initMsg string, progressChan chan<- GitCloneProgressMsg) error {
defer func() {
if progressChan != nil {
close(progressChan)
}
}()

// check targetDir exists
if _, err := os.Stat(targetDir); err == nil {
Expand Down

0 comments on commit 571a638

Please sign in to comment.