mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-16 05:12:19 -04:00
implementing ESlint suggestions
This commit is contained in:
parent
5e070db6a1
commit
2db412873b
9 changed files with 24 additions and 23 deletions
|
@ -93,12 +93,12 @@ describe('DiscussionViewer', function () {
|
|||
$.PrivateBin.DiscussionViewer.getReplyNickname() === $('#reply #nickname').val() &&
|
||||
$.PrivateBin.DiscussionViewer.getReplyMessage() === $('#reply #replymessage').val()
|
||||
);
|
||||
var notificationResult = $.PrivateBin.DiscussionViewer.handleNotification(alertType == 'other' ? alert : alertType);
|
||||
if (alertType == 'loading') {
|
||||
var notificationResult = $.PrivateBin.DiscussionViewer.handleNotification(alertType === 'other' ? alert : alertType);
|
||||
if (alertType === 'loading') {
|
||||
results.push(notificationResult === false);
|
||||
} else {
|
||||
results.push(
|
||||
alertType == 'danger' ? (
|
||||
alertType === 'danger' ? (
|
||||
notificationResult.hasClass('alert-danger') &&
|
||||
!notificationResult.hasClass('alert-info')
|
||||
) : (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue