mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2025-01-07 06:58:42 +00:00
Revert "Check that a variable is set before trying to use it"
This reverts commit f4fc0abf9f
.
This commit is contained in:
parent
075e459f2e
commit
8491eb1c0e
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ function parseDiscogsRelease(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Track number (only for Vinyl and Cassette)
|
// 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*/) ){
|
&& discogsTrack.position.match(/^[A-Z]+[\.-]?\d*/) ){
|
||||||
track.number = discogsTrack.position;
|
track.number = discogsTrack.position;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue