Skip to content

Conversation

@zamderax
Copy link
Contributor

@zamderax zamderax commented Oct 11, 2025

Replace a forced cast with a typed catch and a safe fallback
This removes a compiler warning and avoids a potential crash if a non-CasbinError ever bubbles up, while keeping behavior unchanged on success.

Tests pass locally with Swift 6.1.2.

…er path\n\n- Use typed catch for CasbinError and fallback to OtherErrorMessage\n- Silences a compiler warning without behavior change in success path
@hsluoyz hsluoyz merged commit eda8ccd into casbin:master Oct 11, 2025
4 checks passed
@hsluoyz
Copy link
Member

hsluoyz commented Oct 11, 2025

🎉 This PR is included in version 1.10.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants