File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff 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 () {
Original file line number Diff line number Diff 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.
178173type Reference struct {
179174 // Refname is the full reference name of the reference.
You can’t perform that action at this time.
0 commit comments