Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSCache无需拦截key为空的情况 #29

Open
xiwuxisheng opened this issue Dec 7, 2019 · 1 comment
Open

NSCache无需拦截key为空的情况 #29

xiwuxisheng opened this issue Dec 7, 2019 · 1 comment

Comments

@xiwuxisheng
Copy link

NSCache进行swizzing交换时,无需判断key为nil的情况,因为setObject:forKey方法里key不遵循NSCoping协议,而且通过本地测试(我用的iOS13)测试,当key为nil时,执行上述set方法不会crash,仍然可以继续执行

@jasenhuang
Copy link
Owner

@xiwuxisheng u're right. remove already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants