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

Commit 4b68982

Browse files
mktipMohammad Kefah
authored andcommitted
use constant instead of literal string
Signed-off-by: Mohammad Kefah <mo@edraj.io>
1 parent 60033b8 commit 4b68982

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)