improving code quality issues reported by Codacy

This commit is contained in:
El RIDO 2018-01-06 10:57:54 +01:00
parent 3bca559826
commit 98d07e0789
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
8 changed files with 21 additions and 16 deletions

View file

@ -1639,7 +1639,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
*/
me.getText = function()
{
return $message.val()
return $message.val();
};
/**
@ -2033,7 +2033,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
me.hasAttachment = function()
{
var link = $attachmentLink.prop('href');
return (typeof link !== 'undefined' && link !== '')
return (typeof link !== 'undefined' && link !== '');
};
/**
@ -2345,7 +2345,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
$comment.removeClass('highlight');
}, 300);
}
}
};
if (UiHelper.isVisible($comment)) {
return highlightComment();
@ -3652,7 +3652,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
try {
attachmentName = decryptOrPromptPassword(key, password, paste.attachmentname);
} catch (err) {
throw 'failed to decipher attachment name: ' + err
throw 'failed to decipher attachment name: ' + err;
}
if (attachmentName === false) {
return false;
@ -3871,7 +3871,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
window.scrollTo(0, orgPosition);
callback();
})
});
Uploader.run();
};
@ -3915,7 +3915,7 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
], 'copy', true, true);
}
Editor.setText(PasteViewer.getText())
Editor.setText(PasteViewer.getText());
PasteViewer.hide();
Editor.show();