You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be a great refactoring idea. I think the code still originates from the pre-generics time, or at least when we used a go version that didn't had generics.
with reference to:
openqa-mon/cmd/openqa-mon/util.go
Line 44 in 900c714
and
openqa-mon/cmd/openqa-mon/util.go
Line 56 in 900c714
a sample implementation with generics types (introduced in Go 1.18) that also avoids allocating a map of bools:
to call it:
The text was updated successfully, but these errors were encountered: