mirror of
https://github.com/containers/podman.git
synced 2026-03-30 20:43:40 -04:00
This was added by commit 84e42877a ("make lint: re-enable revive"),
making nolintlint became almost useless.
Remove the ungodly amount of unused nolint annotations.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
30 lines
527 B
Go
30 lines
527 B
Go
package reports
|
|
|
|
type RmReport struct {
|
|
Id string `json:"Id"`
|
|
Err error `json:"Err,omitempty"`
|
|
RawInput string `json:"-"`
|
|
}
|
|
|
|
func RmReportsIds(r []*RmReport) []string {
|
|
ids := make([]string, 0, len(r))
|
|
for _, v := range r {
|
|
if v == nil || v.Id == "" {
|
|
continue
|
|
}
|
|
ids = append(ids, v.Id)
|
|
}
|
|
return ids
|
|
}
|
|
|
|
func RmReportsErrs(r []*RmReport) []error {
|
|
errs := make([]error, 0, len(r))
|
|
for _, v := range r {
|
|
if v == nil || v.Err == nil {
|
|
continue
|
|
}
|
|
errs = append(errs, v.Err)
|
|
}
|
|
return errs
|
|
}
|