diff --git a/cmd.go b/cmd.go index 39e8c0b0..7a8c9a82 100644 --- a/cmd.go +++ b/cmd.go @@ -404,7 +404,7 @@ func syncList(ctx context.Context, httpClient *http.Client, cmdArgs *parser.Argu } if config.Runtime.Mode.AtLeastAUR() && (len(cmdArgs.Targets) == 0 || aur) { - req, err := http.NewRequestWithContext(ctx, "GET", config.AURURL+"/packages.gz", nil) + req, err := http.NewRequestWithContext(ctx, "GET", config.AURURL+"/packages.gz", http.NoBody) if err != nil { return err } diff --git a/pkg/completion/completion.go b/pkg/completion/completion.go index 26c6e9b3..392a6059 100644 --- a/pkg/completion/completion.go +++ b/pkg/completion/completion.go @@ -78,7 +78,7 @@ func createAURList(ctx context.Context, client *http.Client, aurURL string, out u.Path = path.Join(u.Path, "packages.gz") - req, err := http.NewRequestWithContext(ctx, "GET", u.String(), nil) + req, err := http.NewRequestWithContext(ctx, "GET", u.String(), http.NoBody) if err != nil { return err } diff --git a/pkg/news/news.go b/pkg/news/news.go index 41d3d223..3898ab53 100644 --- a/pkg/news/news.go +++ b/pkg/news/news.go @@ -61,7 +61,7 @@ type rss struct { } func PrintNewsFeed(ctx context.Context, client *http.Client, cutOffDate time.Time, bottomUp, all, quiet bool) error { - req, err := http.NewRequestWithContext(ctx, "GET", "https://archlinux.org/feeds/news", nil) + req, err := http.NewRequestWithContext(ctx, "GET", "https://archlinux.org/feeds/news", http.NoBody) if err != nil { return err } diff --git a/pkg/text/text.go b/pkg/text/text.go index dacc999e..a4972f84 100644 --- a/pkg/text/text.go +++ b/pkg/text/text.go @@ -58,8 +58,8 @@ func ContinueTask(s string, cont, noConfirm bool) bool { postFix string yes = gotext.Get("yes") no = gotext.Get("no") - y = string([]rune(yes)[0]) - n = string([]rune(no)[0]) + y = string([]rune(yes)[0]) // nolint + n = string([]rune(no)[0]) // nolint ) if cont {