Removed unnecessary string builder

This commit is contained in:
cijo-saju 2017-04-08 10:12:40 +05:30
parent ed8336ee54
commit 41112d29bd

View file

@ -637,12 +637,8 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
private String getStatus(User user) {
if (mAdvancedMode) {
StringBuilder builder = new StringBuilder();
builder.append(getString(user.getAffiliation().getResId()));
builder.append(" (");
builder.append(getString(user.getRole().getResId()));
builder.append(')');
return builder.toString();
return getString(user.getAffiliation().getResId()) +
" (" + getString(user.getRole().getResId()) + ')';
} else {
return getString(user.getAffiliation().getResId());
}