Combined statements

This commit is contained in:
Marius Begby committed 2023-07-15 04:42:56 +02:00
1 parent ea4df17195
commit 6505e10ef8
1 file changed
+1 -2
+1 -2
View File
@@ -65,8 +65,8 @@ module.exports = {
author = 'Unavailable'; author = 'Unavailable';
} }
let plays = currentTrack.views !== 0 ? currentTrack.views : 0; let plays = currentTrack.views !== 0 ? currentTrack.views : 0;
if (plays === 0) {
if ( if (
plays === 0 &&
currentTrack.metadata.bridge.views !== 0 && currentTrack.metadata.bridge.views !== 0 &&
currentTrack.metadata.bridge.views !== undefined currentTrack.metadata.bridge.views !== undefined
) { ) {
@@ -74,7 +74,6 @@ module.exports = {
} else { } else {
plays = 'Unavailable'; plays = 'Unavailable';
} }
}
const source = const source =
sourceStringsFormatted.get(currentTrack.raw.source) ?? sourceStringsFormatted.get(currentTrack.raw.source) ??
'Unavailable'; 'Unavailable';