mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 07:35:48 -05:00
Fix: Remove extra scanner.Scan() call in syncList (#2751)
The syncList function had an extra scanner.Scan() call before the main loop, causing the first package name to be skipped when listing AUR packages.
This commit is contained in:
2
cmd.go
2
cmd.go
@@ -428,8 +428,6 @@ func syncList(ctx context.Context, run *runtime.Runtime,
|
|||||||
}
|
}
|
||||||
defer scanner.Close()
|
defer scanner.Close()
|
||||||
|
|
||||||
scanner.Scan()
|
|
||||||
|
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
name := scanner.Text()
|
name := scanner.Text()
|
||||||
if cmdArgs.ExistsArg("q", "quiet") {
|
if cmdArgs.ExistsArg("q", "quiet") {
|
||||||
|
|||||||
Reference in New Issue
Block a user