add a file close that was missed

This commit is contained in:
Jesse Duffield 2022-01-26 13:51:56 +11:00
parent c8cc18920f
commit dc765c4166

View file

@ -35,6 +35,7 @@ func (self *SubmoduleCommands) GetConfigs() ([]*models.SubmoduleConfig, error) {
} }
return nil, err return nil, err
} }
defer file.Close()
scanner := bufio.NewScanner(file) scanner := bufio.NewScanner(file)
scanner.Split(bufio.ScanLines) scanner.Split(bufio.ScanLines)