Merge pull request #3509 from sancodes/eslint-novoid

add eslint novoid
This commit is contained in:
Bill Thornton
2022-04-13 00:44:30 -04:00
committed by GitHub
12 changed files with 61 additions and 31 deletions
@@ -51,7 +51,8 @@ import template from './accessSchedule.template.html';
};
if (parseFloat(updatedSchedule.StartHour) >= parseFloat(updatedSchedule.EndHour)) {
return void alert(globalize.translate('ErrorStartHourGreaterThanEnd'));
alert(globalize.translate('ErrorStartHourGreaterThanEnd'));
return;
}
context.submitted = true;
+2 -1
View File
@@ -23,7 +23,8 @@ import ServerConnections from './ServerConnections';
if (!actionableParent || actionableParent.classList.contains('cardContent')) {
apiClient.getJSON(apiClient.getUrl('Users/' + userId + '/Items/Latest', options)).then(function (items) {
if (items.length === 1) {
return void appRouter.showItem(items[0]);
appRouter.showItem(items[0]);
return;
}
const url = 'details?id=' + itemId + '&serverId=' + serverId;
@@ -323,7 +323,8 @@ import template from './libraryoptionseditor.template.html';
function onImageFetchersContainerClick(e) {
const btnImageOptionsForType = dom.parentWithClass(e.target, 'btnImageOptionsForType');
if (btnImageOptionsForType) {
return void showImageOptionsForType(dom.parentWithClass(btnImageOptionsForType, 'imageFetcher').getAttribute('data-type'));
showImageOptionsForType(dom.parentWithClass(btnImageOptionsForType, 'imageFetcher').getAttribute('data-type'));
return;
}
onSortableContainerClick.call(this, e);
}
@@ -122,9 +122,10 @@ export default function (page, providerId, options) {
const selectedListingsId = $('#selectListing', page).val();
if (!selectedListingsId) {
return void Dashboard.alert({
Dashboard.alert({
message: globalize.translate('ErrorPleaseSelectLineup')
});
return;
}
loading.show();
@@ -168,7 +169,8 @@ export default function (page, providerId, options) {
function refreshListings(value) {
if (!value) {
return void $('#selectListing', page).html('');
$('#selectListing', page).html('');
return;
}
loading.show();