File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,6 @@ func Search(pattern string) ([]*Package, error) {
65
65
func parseDpkgQueryOutput (out []byte ) []* Package {
66
66
res := []* Package {}
67
67
scanner := bufio .NewScanner (bytes .NewReader (out ))
68
- buf := make ([]byte , 0 , 1024 * 1024 ) // 1 MB buffer
69
- scanner .Buffer (buf , 1024 * 1024 ) // Set max buffer size to 1 MB
70
68
for scanner .Scan () {
71
69
data := strings .Split (scanner .Text (), "\t " )
72
70
size , err := strconv .Atoi (data [4 ])
@@ -113,8 +111,6 @@ func parseListUpgradableOutput(r io.Reader) []*Package {
113
111
114
112
res := []* Package {}
115
113
scanner := bufio .NewScanner (r )
116
- buf := make ([]byte , 0 , 1024 * 1024 ) // 1 MB buffer
117
- scanner .Buffer (buf , 1024 * 1024 ) // Set max buffer size to 1 MB
118
114
for scanner .Scan () {
119
115
matches := re .FindAllStringSubmatch (scanner .Text (), - 1 )
120
116
if len (matches ) == 0 {
You can’t perform that action at this time.
0 commit comments