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
// remove possible paths that do not match possible platforms
slices.DeleteFunc(possiblePaths, func(s string) bool {
pform := strings.Split(s, string(os.PathSeparator))[0]
return !slices.Contains(kvp.platforms, pform)
})
which doesn't do what it seems to do, and should look like this instead:
// remove possible paths that do not match possible platforms
possiblePaths = slices.DeleteFunc(possiblePaths, func(s string) bool {
pform := strings.Split(s, string(os.PathSeparator))[0]
return !slices.Contains(kvp.platforms, pform)
})
I have not tried to execute it.
The text was updated successfully, but these errors were encountered:
@Deleplace thanks a lot for reporting this issue, you are fully right that our usage here is wrong. I opened #21077 that should fix it (and add a test for good measure). Thanks again !
Hello, while researching for this Go proposal I noticed this code:
which doesn't do what it seems to do, and should look like this instead:
I have not tried to execute it.
The text was updated successfully, but these errors were encountered: