From 8491eb1c0e5de6c052716d2f3d231664ca9a94d9 Mon Sep 17 00:00:00 2001 From: nikki Date: Fri, 26 Sep 2014 16:21:01 +0200 Subject: [PATCH] Revert "Check that a variable is set before trying to use it" This reverts commit f4fc0abf9f1e4a50236bd7a7de098c9052c5f980. --- discogs_importer.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discogs_importer.user.js b/discogs_importer.user.js index 04fd073..5ddd23e 100644 --- a/discogs_importer.user.js +++ b/discogs_importer.user.js @@ -427,7 +427,7 @@ function parseDiscogsRelease(data) { } // Track number (only for Vinyl and Cassette) - if (release.discs[releaseNumber-1].format && release.discs[releaseNumber-1].format.match(/(Vinyl|Cassette)/) + if ( release.discs[releaseNumber-1].format.match(/(Vinyl|Cassette)/) && discogsTrack.position.match(/^[A-Z]+[\.-]?\d*/) ){ track.number = discogsTrack.position; }