Fix various warnings

Unused variable, left-over comma and nonstrict comparisons.
This commit is contained in:
augustjanse 2017-06-13 13:41:23 +02:00
parent e6b6a26559
commit c29313e000
2 changed files with 5 additions and 8 deletions

View file

@ -37,9 +37,6 @@ function retrieveReleaseInfo(release_url) {
var release_date_strings = [
'Release Date', 'Fecha de lanzamiento', 'Date de sortie', 'Erscheinungsdatum', 'Data de lançamento', 'Releasedatum', "Data di uscita", "リリース予定日"
];
var release_strings = [
'Release', 'Lanzamiento', 'Sortie', 'Album', 'Lançamento'
];
var labels_strings = [
'Labels', 'Sello', 'Gravadoras', "Label", "Etichetta", "Editora", "レーベル"
];
@ -82,13 +79,13 @@ function retrieveReleaseInfo(release_url) {
var artists = [];
t.artists.forEach(
function ( artist, index, arr ) {
function (artist) {
artists.push(artist.name);
release_artists.push(artist.name);
}
);
var title = t.name;
if (t.mixName && t.mixName != 'Original Mix' && t.mixName != 'Original') {
if (t.mixName && t.mixName !== 'Original Mix' && t.mixName !== 'Original') {
title += ' (' + t.mixName + ')';
}
tracks.push({

View file

@ -47,7 +47,7 @@ function retrieveReleaseInfo(release_url) {
type: '',
urls: [],
labels: [],
discs: [],
discs: []
};
// URLs
@ -70,7 +70,7 @@ function retrieveReleaseInfo(release_url) {
var release_artists = [];
$.each(the_tracks,
function (idx, track) {
if (track.release.id != ProductDetail.id) {
if (track.release.id !== ProductDetail.id) {
return;
}
if (seen_tracks[track.id]) {
@ -87,7 +87,7 @@ function retrieveReleaseInfo(release_url) {
);
var title = track.name;
if (track.mix && track.mix != 'Original Mix') {
if (track.mix && track.mix !== 'Original Mix') {
title += ' (' + track.mix + ')';
}
tracks.push({