Merge pull request #13089 from ramonlsouza/fix-lgtm-alerts

remove useless conditionals - LGTM alerts
This commit is contained in:
Anton Georgiev 2021-08-27 11:33:02 -04:00 committed by GitHub
commit 6747d2367a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 6 deletions

View File

@ -76,7 +76,7 @@ const ChatAlert = (props) => {
: unreadObject.filter((chat) => chat.chatId !== idChatOpen)
.reduce((a, b) => a + b.unreadCounter, 0);
if (audioAlertEnabled && unreadCount > unreadMessagesCount) {
if (unreadCount > unreadMessagesCount) {
AudioService.playAlertSound(`${Meteor.settings.public.app.cdn
+ Meteor.settings.public.app.basename
+ Meteor.settings.public.app.instanceId}`

View File

@ -163,6 +163,7 @@ class NavBar extends Component {
circle
hideLabel
data-test={hasNotification ? 'hasUnreadMessages' : null}
label={intl.formatMessage(intlMessages.toggleUserListLabel)}
tooltipLabel={intl.formatMessage(intlMessages.toggleUserListLabel)}
aria-label={ariaLabel}
icon="user"

View File

@ -707,7 +707,7 @@ class Poll extends Component {
if (!currentSlide) return this.renderNoSlidePanel();
if (isPolling || (!isPolling && currentPoll)) {
if (isPolling || currentPoll) {
return this.renderActivePollOptions();
}

View File

@ -78,10 +78,6 @@ const UserName = (props) => {
const userNameSub = [];
if (compact) {
return null;
}
if (user.isSharingWebcam && LABEL.sharingWebcam) {
userNameSub.push(
<span key={_.uniqueId('video-')}>