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

[TIMOB-18027] iOS: Fix all dead store type error in static analyzer #6343

Closed
wants to merge 1 commit into from

Conversation

cheekiatng
Copy link
Contributor

Dead store errors are values assigned to variables during initialization that are never used or read. These should be removed.
JIRA: https://jira.appcelerator.org/browse/TIMOB-18027

if (txt.length == 0) {
txt = @" ";
if (ourView.text.length == 0) {
ourView.text = @" ";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not modify the value of the textArea text. This is legacy code. You can delete everything above the return value

@vishalduggal
Copy link
Contributor

Code looks good. Two minor comments.

@vishalduggal
Copy link
Contributor

Closing this PR. The changes have been incorporated into PR #6357 which will be merged back to master soon.

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

Successfully merging this pull request may close these issues.

None yet

2 participants