Skip to content

Commit 56839e5

Browse files
author
Scott Arbeit
committed
More linter updates.
1 parent 469485b commit 56839e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

git-sizer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ func mainImplementation(ctx context.Context, stdout, stderr io.Writer, args []st
331331
return fmt.Errorf("error scanning repository: %w", err)
332332
}
333333

334-
// Calculate the actual size of the .git directory
334+
// Calculate the actual size of the .git directory.
335335
gitDir, err := repo.GitDir()
336336
if err != nil {
337337
return fmt.Errorf("error getting Git directory path: %w", err)

sizes/dirsize.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ import (
77
"github.com/github/git-sizer/counts"
88
)
99

10-
// CalculateGitDirSize returns the total size in bytes of the .git directory
10+
// CalculateGitDirSize returns the total size in bytes of the .git directory.
1111
func CalculateGitDirSize(gitDir string) (counts.Count64, error) {
1212
var totalSize counts.Count64
1313

1414
err := filepath.Walk(gitDir, func(path string, info os.FileInfo, err error) error {
1515
if err != nil {
16-
// Skip files we can't access
16+
// Skip files we can't access.
1717
return nil
1818
}
1919

20-
// Only count files, not directories
20+
// Only count files, not directories.
2121
if !info.IsDir() {
2222
totalSize.Increment(counts.Count64(info.Size()))
2323
}

0 commit comments

Comments
 (0)