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 {
110
110
// Try to open the repository, but it's not an error yet if this
111
111
// fails, because the user might only be asking for `--help`.
112
112
repo , repoErr := git .NewRepository ("." )
113
- if repoErr == nil {
114
- defer repo .Close ()
115
- }
116
113
117
114
flags := pflag .NewFlagSet ("git-sizer" , pflag .ContinueOnError )
118
115
flags .Usage = func () {
Original file line number Diff line number Diff line change @@ -169,11 +169,6 @@ func (repo *Repository) Path() string {
169
169
return repo .path
170
170
}
171
171
172
- // Close closes `repo`, possibly freeing up resources.
173
- func (repo * Repository ) Close () error {
174
- return nil
175
- }
176
-
177
172
// Reference represents a Git reference.
178
173
type Reference struct {
179
174
// Refname is the full reference name of the reference.
You can’t perform that action at this time.
0 commit comments