Skip to content

Commit 5c86518

Browse files
committed
Repository.Close(): remove method
It didn't do anything.
1 parent f3caecb commit 5c86518

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

git-sizer.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ func mainImplementation(args []string) error {
110110
// Try to open the repository, but it's not an error yet if this
111111
// fails, because the user might only be asking for `--help`.
112112
repo, repoErr := git.NewRepository(".")
113-
if repoErr == nil {
114-
defer repo.Close()
115-
}
116113

117114
flags := pflag.NewFlagSet("git-sizer", pflag.ContinueOnError)
118115
flags.Usage = func() {

git/git.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,6 @@ func (repo *Repository) Path() string {
169169
return repo.path
170170
}
171171

172-
// Close closes `repo`, possibly freeing up resources.
173-
func (repo *Repository) Close() error {
174-
return nil
175-
}
176-
177172
// Reference represents a Git reference.
178173
type Reference struct {
179174
// Refname is the full reference name of the reference.

0 commit comments

Comments
 (0)