adopt latest golang enhancements (#91)

This commit is contained in:
T. von Dein
2026-07-13 14:33:41 +02:00
parent c5a21bd677
commit 97a509da9e
19 changed files with 159 additions and 114 deletions

View File

@@ -101,7 +101,7 @@ func DocDelete(conf *cfg.Config, queries []string) error {
return nil
}
req := &deletebyquery.Request{}
req := new(deletebyquery.Request{})
if len(queries) == 0 && conf.All {
req.Query = esdsl.NewMatchAllQuery().QueryCaster()