Skip to content

Commit

Permalink
gitindex/index.go: rename unused variables
Browse files Browse the repository at this point in the history
Change-Id: Id2ce7598b6afd52c2455f5c3233103474e5a37d5
  • Loading branch information
sluongng authored and hanwen committed May 25, 2021
1 parent fd1d0fd commit 0314dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitindex/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func RepoModTime(dir string) (time.Time, error) {
refDir := filepath.Join(dir, "refs")
if _, err := os.Lstat(refDir); err == nil {
if err := filepath.Walk(refDir,
func(name string, fi os.FileInfo, err error) error {
func(_ string, fi os.FileInfo, _ error) error {
if !fi.IsDir() && last.Before(fi.ModTime()) {
last = fi.ModTime()
}
Expand Down

0 comments on commit 0314dee

Please sign in to comment.