Skip to content

Commit d28757d

Browse files
committed
Delete tempPath instead of RepoPath
1 parent 650999a commit d28757d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

backend/internal/adj/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func updateRepo(AdjBranch string) error {
3939
}
4040

4141
// If the clone is succesful, delete the temp files
42-
if err = os.RemoveAll(RepoPath); err != nil {
42+
if err = os.RemoveAll(tempPath); err != nil {
4343
return err
4444
}
4545

backend/pkg/adj/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func updateRepo(AdjBranch string) error {
3939
}
4040

4141
// If the clone is succesful, delete the temp files
42-
if err = os.RemoveAll(RepoPath); err != nil {
42+
if err = os.RemoveAll(tempPath); err != nil {
4343
return err
4444
}
4545

0 commit comments

Comments
 (0)