Showing 5,781 of 10,536 total issues
Consider simplifying this complex logical expression. Open
Open
if (
(d.dataTransfer
? (d.dataTransfer.dropEffect = b.options.allowDrop
? "move"
: "none")
Consider simplifying this complex logical expression. Open
Open
if (
d &&
a.isItemEnabled(d) &&
(Ma || ((a.hoverItem = d), a.refresh(d)),
a.options.autoExpand)
Consider simplifying this complex logical expression. Open
Open
if (r) b.fullList.push(d);
else {
r = a;
0 != b.options.showStatusIcons && (r += 15);
switch (d[b.options.dataFields.fixed]) {
Consider simplifying this complex logical expression. Open
Open
if (
0 == a.options.autoSize &&
(b.preventDefault(), !T && a.options.enabled)
) {
var c = 0;
Consider simplifying this complex logical expression. Open
Open
if (
a.isThereChildItems ||
(b && b[a.options.dataFields.hasChildren])
) {
var f = a.indentList[c] / a.options.indent;
Consider simplifying this complex logical expression. Open
Open
if (!T && 1 === b.which) {
L[0].getBoundingClientRect();
b = a.getMousePos(b);
w.scrollMousePos || (w.scrollMousePos = b);
var c = L[0].offsetLeft + (b.x - w.scrollMousePos.x);
Consider simplifying this complex logical expression. Open
Open
if (b.isItemEnabled(h)) {
var d = b.itemSelection(),
u = !0;
d &&
(u =
Consider simplifying this complex logical expression. Open
Open
if (c) {
if (f.isString(d)) return d;
switch (c) {
case "disabled":
return d && d.disabled
Consider simplifying this complex logical expression. Open
Open
if (g) {
var p = n.getData(),
e = p.source;
e || (e = a.getDnDSource(b));
(d = a.isDropAllowed(e, g, p.dropPos)) &&
Consider simplifying this complex logical expression. Open
Open
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
}
Consider simplifying this complex logical expression. Open
Open
if (b.isItemExpanded(a)) {
var c = null,
r = !1,
f = a,
k = -1,
Consider simplifying this complex logical expression. Open
Open
if (!(0 == b && 0 >= z)) {
newIndex = 0 < z ? Math.floor(a.scrollPos.y / z) : 0;
a.scrollPos.y == J.y && newIndex--;
if (
a.currentList.length >= x &&
Consider simplifying this complex logical expression. Open
Open
if (meter_list is None or len(meter_list) == 0) and \
(virtual_meter_list is None or len(virtual_meter_list) == 0) and \
(offline_meter_list is None or len(offline_meter_list) == 0):
print("This is an empty tenant ")
return None
Consider simplifying this complex logical expression. Open
Open
if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
(energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
(energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
# There isn't any energy data
print("There isn't any energy data")
Consider simplifying this complex logical expression. Open
Open
if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
(energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
(energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
# There isn't any energy data
print("There isn't any energy data")
Consider simplifying this complex logical expression. Open
Open
if (meter_list is None or len(meter_list) == 0) and \
(virtual_meter_list is None or len(virtual_meter_list) == 0) and \
(offline_meter_list is None or len(offline_meter_list) == 0):
print("This is an empty equipment ")
return None
Consider simplifying this complex logical expression. Open
Open
if (meter_list is None or len(meter_list) == 0) and \
(virtual_meter_list is None or len(virtual_meter_list) == 0) and \
(offline_meter_list is None or len(offline_meter_list) == 0):
print("This is an empty equipment ")
return None
Consider simplifying this complex logical expression. Open
Open
if (energy_meter_hourly is None or len(energy_meter_hourly) == 0) and \
(energy_virtual_meter_hourly is None or len(energy_virtual_meter_hourly) == 0) and \
(energy_offline_meter_hourly is None or len(energy_offline_meter_hourly) == 0):
# There isn't any energy data
print("There isn't any energy data")
Consider simplifying this complex logical expression. Open
Open
if (meter_list is None or len(meter_list) == 0) and \
(virtual_meter_list is None or len(virtual_meter_list) == 0) and \
(offline_meter_list is None or len(offline_meter_list) == 0):
print("This is an empty tenant ")
return None
Consider simplifying this complex logical expression. Open
Open
if (meter_list is None or len(meter_list) == 0) and \
(virtual_meter_list is None or len(virtual_meter_list) == 0) and \
(offline_meter_list is None or len(offline_meter_list) == 0):
print("This is an empty store ")
return None