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
Go 1.22 introduced a restriction where type assertions in multiple
assignments must be standalone.
This fix ensures compliance by:
- Separating type assertions before passing values to functions.
- Adding error handling for failed assertions to prevent runtime panics.
- Consolidating duplicate cases for cleaner logic.
This resolves golangci-lint 'forcetypeassert' errors.
Fixes#1932
Signed-off-by: Chmouel Boudjnah <[email protected]>
0 commit comments