summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-26 13:51:56 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-26 14:50:47 +1100
commitdc765c416624d19e9d1c9a8aff10c75e08e30105 (patch)
treec1e2c9906897e4dbee302961936d68e843242454
parentc8cc18920f0b5ab54a19b9f7bdcf83db3210576f (diff)
add a file close that was missed
-rw-r--r--pkg/commands/git_commands/submodule.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/commands/git_commands/submodule.go b/pkg/commands/git_commands/submodule.go
index c08474bc0..82744a338 100644
--- a/pkg/commands/git_commands/submodule.go
+++ b/pkg/commands/git_commands/submodule.go
@@ -35,6 +35,7 @@ func (self *SubmoduleCommands) GetConfigs() ([]*models.SubmoduleConfig, error) {
}
return nil, err
}
+ defer file.Close()
scanner := bufio.NewScanner(file)
scanner.Split(bufio.ScanLines)