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

LocalVariable why? #13

Closed
mtychyna opened this issue Apr 27, 2016 · 1 comment
Closed

LocalVariable why? #13

mtychyna opened this issue Apr 27, 2016 · 1 comment

Comments

@mtychyna
Copy link

See no need of creation additional local variable targetTag.

deletableView.setOnClickListener(new OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        if (mDeleteListener != null) {
                            Tag targetTag = tag;
                            mDeleteListener.onTagDeleted(TagView.this, targetTag, position);
                        }
                    }
                });
@Cutta
Copy link
Owner

Cutta commented Aug 2, 2016

You are right. I removed it.

@Cutta Cutta closed this as completed Aug 2, 2016
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