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 creates force unwrapping warning and it should not. This is safe - when self is nil, second self is not even called so it won't crash.
Are you sure this is safe? What if the last reference to self is released by a different thread between the time the left self is evaluated and the right self! is evaluated?
It used to work great in previous versions. It's broken since 0.33, I guess it could be connected with #2759.
You have this backwards, a limitation in SwiftLint meant that the force_unwrapping rule wasn't applied to self keywords at all. The behavior you're describing has also applied to identifiers other than self since the rule was originally created: controller?.delegate?.didTapClose(in: controller!)
New Issue Checklist
Describe the bug
This creates force unwrapping warning and it should not. This is safe - when self is nil, second self is not even called so it won't crash.
It used to work great in previous versions. It's broken since 0.33, I guess it could be connected with #2759.
The text was updated successfully, but these errors were encountered: