Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 6142bc3

Browse files
authored
Merge pull request #1164 from noonehereplzgo/patch-1
use constant instead of literal string
2 parents 60033b8 + 4b68982 commit 6142bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worktree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ func (w *Worktree) Clean(opts *CleanOptions) error {
722722

723723
func (w *Worktree) doClean(status Status, opts *CleanOptions, dir string, files []os.FileInfo) error {
724724
for _, fi := range files {
725-
if fi.Name() == ".git" {
725+
if fi.Name() == GitDirName {
726726
continue
727727
}
728728

0 commit comments

Comments
 (0)