Run gopls modernize on codebase (#34751)
Recent modernize fixes: https://github.com/golang/tools/commits/master/gopls/internal/analysis/modernize
This commit is contained in:
@@ -21,10 +21,7 @@ const (
|
||||
|
||||
// Packages displays a list of all packages in the repository
|
||||
func Packages(ctx *context.Context) {
|
||||
page := ctx.FormInt("page")
|
||||
if page <= 1 {
|
||||
page = 1
|
||||
}
|
||||
page := max(ctx.FormInt("page"), 1)
|
||||
query := ctx.FormTrim("q")
|
||||
packageType := ctx.FormTrim("type")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user