aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_status.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2024-08-09 08:07:25 +0100
committerGitHub <noreply@github.com>2024-08-09 08:07:25 +0100
commit728f1494421b0f32403ec18767ac2ab1cde68ff0 (patch)
treea5195706f80756aec4dd0e339680b090b0312f62 /worktree_status.go
parentc594bae8d75d3728947ffc9ad266acce32057dca (diff)
parent3624ec147c8c6ecb5df05f9b11731628e36f1744 (diff)
downloadgo-git-728f1494421b0f32403ec18767ac2ab1cde68ff0.tar.gz
Merge pull request #1128 from pjbgf/small-fixes
Fix some lint warning and increase stalebot to 180 days
Diffstat (limited to 'worktree_status.go')
-rw-r--r--worktree_status.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worktree_status.go b/worktree_status.go
index f6b8282..6e72db9 100644
--- a/worktree_status.go
+++ b/worktree_status.go
@@ -504,7 +504,7 @@ func (w *Worktree) copyFileToStorage(path string) (hash plumbing.Hash, err error
return w.r.Storer.SetEncodedObject(obj)
}
-func (w *Worktree) fillEncodedObjectFromFile(dst io.Writer, path string, fi os.FileInfo) (err error) {
+func (w *Worktree) fillEncodedObjectFromFile(dst io.Writer, path string, _ os.FileInfo) (err error) {
src, err := w.Filesystem.Open(path)
if err != nil {
return err
@@ -519,7 +519,7 @@ func (w *Worktree) fillEncodedObjectFromFile(dst io.Writer, path string, fi os.F
return err
}
-func (w *Worktree) fillEncodedObjectFromSymlink(dst io.Writer, path string, fi os.FileInfo) error {
+func (w *Worktree) fillEncodedObjectFromSymlink(dst io.Writer, path string, _ os.FileInfo) error {
target, err := w.Filesystem.Readlink(path)
if err != nil {
return err